Jump to content

[SOLVED] How to know the type loaded in a .node file


photo

Recommended Posts

Posted

Hello,

 

I am currently loading meshes using .node files with World::loadNode but in a part of the code, this node can be a Skinned or a Static mesh. So when i have my NodePtr, how can i know which type using?

 

Thanks

Posted

Hi Jean-Baptiste,

 

Use can use Node::getTypeName to get object name or Node::getType to get object enum id. (for ObjectMeshSkinned id = 34, for ObjectMeshStatic = 31).

Posted

Ok thanks it works :) Sorry i missed that in the documentation

×
×
  • Create New...