MarKli Posted September 30, 2023 Share Posted September 30, 2023 I'm currently working on a Pick mod and wanted to get the children but I can only find FindChild which doesn't help me. Could you add something like children in the entity. int GetChildCount(); shared_ptr<Entity> GetChild(int index); void GetChildren(vector<shared_ptr<Entity> >& results); Or have I overlooked something ? Quote Link to comment Share on other sites More sharing options...
reepblue Posted September 30, 2023 Share Posted September 30, 2023 Huh, Leadwerks had similar commands to what you're suggesting but I'm not seeing anything public relating to children minus FindChild(). 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 September 30, 2023 Share Posted September 30, 2023 entity->kids is a read-only STL vector containing all the children. 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...
MarKli Posted October 2, 2023 Author Share Posted October 2, 2023 Thanks, that's what i needed. Quote 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.