我最喜欢深海dalao了 Posted December 5, 2019 Share Posted December 5, 2019 How to get root's all entities? I didn't find it in the API. Is there such a function? I use Lua for the time being,Everybody help Quote Link to comment Share on other sites More sharing options...
gamecreator Posted December 5, 2019 Share Posted December 5, 2019 You can use world:GetEntity() to get each one. There's an example using it here: https://www.leadwerks.com/community/blogs/entry/1866-common-bottlenecks/page/2/?tab=comments#comment-8055 Quote Link to comment Share on other sites More sharing options...
我最喜欢深海dalao了 Posted December 5, 2019 Author Share Posted December 5, 2019 26 minutes ago, gamecreator said: You can use world:GetEntity() to get each one. There's an example using it here: https://www.leadwerks.com/community/blogs/entry/1866-common-bottlenecks/page/2/?tab=comments#comment-8055 Thank you very much, but why didn't these functions appear in the official doc? And that doc brought me some confusion. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted December 5, 2019 Share Posted December 5, 2019 Unfortunately, there are two problems with the documentation: 1. It is incomplete. The last several updates, especially, are rather lacking (i.e.: there are zero GUI examples for C++). And many functions that are in the documentation don't have examples. Some are straightforward and honestly don't need it, others aren't. 2. Some functions are intentionally undocumented because they're unofficial. I think this is the case for the above function(s). However, as far as I can tell, there is no way to know if a function is undocumented because Josh forgot to/chose not to document it or that it's really unofficial. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted January 8, 2020 Share Posted January 8, 2020 On 5/12/2019 at 11:03, gamecreator said: Desafortunadamente, hay dos problemas con la documentación: 1. Está incompleto. Las últimas actualizaciones, especialmente, son bastante deficientes (es decir, no hay ejemplos de GUI para C ++). Y muchas funciones que están en la documentación no tienen ejemplos. Algunos son sencillos y sinceramente no lo necesitan, otros no. 2. Algunas funciones no están documentadas intencionalmente porque no son oficiales. Creo que este es el caso de las funciones anteriores. Sin embargo, por lo que puedo decir, no hay forma de saber si una función no está documentada porque Josh olvidó / decidió no documentarla o que realmente no es oficial. One question, when you say "unofficial", what exactly do you mean, what doesn't Josh do? Quote Link to comment Share on other sites More sharing options...
reepblue Posted January 8, 2020 Share Posted January 8, 2020 "Unofficial" meaning that it's a function that was put there as an experiment or he thought it would be replaced/removed one day. Personally, I just read the headers as my API, but examples really help. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2020 Share Posted January 9, 2020 If it’s not in the documentation it’s potentially subject to change in the future. There are also some engine functions that are not documented that the user should not call. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.