CarlBateman Posted July 15, 2017 Share Posted July 15, 2017 I need to identify the type of some given object in a Babylon scene (in JavaScript). So far, I have __proto__.constructor.name for lights, but nothing for meshes and geometry. Is there any way to reliably identify object types? (I'd like to avoid using tags.) TIA Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 17, 2017 Share Posted July 17, 2017 Hey Carl, most of the classes provide a function getClassName() which will return a string unique to the class. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.