Three.js: Access Scene Objects By Name Or Id April 21, 2024 Post a Comment I'm generating objects from an array which I've defined like this (It's not limited to these three): var links = [['Linkedin','img/linkedin.png','-300','-230', '600'],Solution 1: You can do this:myObject.name = "objectName"; ... varobject = scene.getObjectByName( "objectName" ); Copyor to recursively search the scene graphvarobject = scene.getObjectByName( "objectName", true ); CopyAlternatively, you can search by ID.varobject = scene.getObjectById( 4, true ); Copythree.js r.61 Share Post a Comment for "Three.js: Access Scene Objects By Name Or Id"
Post a Comment for "Three.js: Access Scene Objects By Name Or Id"