three.js how to get scene by id(name)
问题 I created a scene; How can I get it by id(name)? Like jquery(#test) ? In three.js doc,I just find the scene.getObjectById() to get children obj. 回答1: Did you even search? There is a getObjectByName method for this here in the Object3D class. And here it is also mentioned in the documentation. Update Both the getObjectByName and the getObjectById methods are to find children objects inside a parent object. A scene doesn't have a parent so finding scene by id or finding scene by name doesn't