MarKli Posted September 30, 2023 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
reepblue Posted September 30, 2023 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!
Josh Posted September 30, 2023 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.
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.