Jump to content

[SOLVED] Loading nodes from c++


photo

Recommended Posts

Hi.

I try to load nodes from C++ by World::loadNode function, but I can't view it on Screen.

 

Here's my code

Unigine::NodePtr result = Unigine::World::get()->loadNode( filename.c_str() );

 

But if i Run this code from keyRelease callback, node is loaded and i can see it in world.

 

Unigine::Engine::get()->isWorldInterpreter() returns 0 in first time and 1 in second.

 

What can I do with it?

Link to comment
×
×
  • Create New...