-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app.root is not the root entity in a Scene #162
Comments
Currently It is possible to load multiple scene hierarchies into the application. Each one gets added to
I concede that it is natural to assume app.root is the root of the scene, but only if you are working with a single scene. My feeling is this should remain as is. |
However, I think it's good to support multiple scenes, but
Notice that the |
Most common use of app root, is easy way to find entity by name in script components. Do users write: |
@Maksims Your idea totally makes sense. The only problem left might be "Is multiple running scenes necessary?" I actually don't think of practical use cases for multiple scenes ( perhaps it's because I'm relatively new to 3D development ). |
I'd vote for this to be closed as Won't Do. Any objections @willeastcott ? |
No, it's fine. |
It's natural for a developer to assume that the root entity in the hierarchy in the editor is what is returned by app.root. Currently, this is not the case. Instead, there is actually a 'phantom' parent to the hierarchy's root that is not visible to the user.
Moreover, app.root should become app.scene.root. I think that makes more sense. We can maintain the old root property but just leave it undocumented.
The text was updated successfully, but these errors were encountered: