Get scene node by name, how?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
marco.siino
Posts: 14
Joined: Thu Oct 13, 2005 2:36 pm

Get scene node by name, how?

Post by marco.siino »

Hello!

How can i get an ISceneNode in the scenemanager, if i know only its name ? I need to know it in Irrlicht.Net, but if you know how to do only in C++ tell me anyway pls.

I need to do this because i've to make a scene with irrEdit, and give a particular name to a scede node in the editor, then i need to "get" back that scenenode when i load the scene in irrlicht, but i know how how i called it...

I hope there is a better solution than visiting all the scenegraph tree manually :( (i don't like trees very well :)

Thank you very much!
--
Marco Siino
Software Developer for an italian Software House

"Reality is merely an illusion, albeit a very persistent one" - Albert Einstein
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

What is wrong with walking the scene graph manually? It is just a simple recursive function. As long as you're not doing it every tick, it should be fine. Anyways, I posted the code for doing this just a few days ago.
Post Reply