1
Technical forum / Iterate Through All Entities in a Scene
« on: October 03, 2006, 03:23:18 AM »
Hi,
Anyone have any suggestions on how I cycle through all the entities in a scene without knowing what they might be? I use a particular entity naming convention and want to apply certain code to all entities that, for example, have a name that starts with 'abc' (there could be 'abc1', 'abc2', 'abc_i_am_a_monkey', etc.).
Part of this will probably involve using the Substring method.
I've looked through the docs but nothing's jumping out at me. What I need is a collection or array or similar to work with. Is there some sort of a variation of GetNode?
Cheers.
Anyone have any suggestions on how I cycle through all the entities in a scene without knowing what they might be? I use a particular entity naming convention and want to apply certain code to all entities that, for example, have a name that starts with 'abc' (there could be 'abc1', 'abc2', 'abc_i_am_a_monkey', etc.).
Part of this will probably involve using the Substring method.
I've looked through the docs but nothing's jumping out at me. What I need is a collection or array or similar to work with. Is there some sort of a variation of GetNode?
Cheers.