[SOLVED] Related to loadNode()


photo

Recommended Posts

image.thumb.png.f76e1ae127d5070cd646fb413ba184e5.png

 

As shown in the image shown, I wonder if the node type called up when the loadNode() function is nodeReference or ObjectMeshStatic.

Link to post

Hi! you can check 

auto node = World::loadNode("bullet.node");
Log::message("node type: %s\n", node->getTypeName());

i suppose it s ObjectMeshStatic inside bullet.node
image.png

 

if you want to use NodeReference - use NodeReference::create("bullet.node")
 

Link to post

I asked you a simple question. Thank you!

Link to post
  • silent changed the title to [SOLVED] Related to loadNode()