-
Notifications
You must be signed in to change notification settings - Fork 33
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
Entity SubScene Support #46
Comments
This sound like a problem with Entities and not this package. The only thing I can think of would be to display a warning message in this case, and that would be costly in terms of editor performance to implement, so I am not sure. Also, I am a bit confused by your setup regarding the SubScenes, as they are not intended to be loaded like regular scenes, but rather they should already exist in another scene via the SubScene component. |
The entities package has its own scene loading functionality for SubScenes, To be fair, I haven't tried to use that function with a regular scene, but regular scene loading comes with a significant performance overhead, so I decided to load the subscenes directly. I completely understand your remark about editor performance, and I do not have a good solution in mind either right now. If I recall correctly, in entities 0.5 there were build configurations which could reference entity scenes to be included, but they stopped using those. |
I see, I haven't been keeping track of the Entities API lately. I will implement a scan feature then, but make it toggleable. |
On a second look at the current API, I decided to wait until things stabilize, as there seems no way of implementing a scan feature easily at the moment other than a full instructions scan via reflection. When the entities package is out of preview and it is officially supported, feel free to ping me about this issue again and I will reevaluate the options. |
The entities package is at To summarize, a scene is added into the build if it's either:
In our project we currently added a pre-build step where we add all subscenes from a scriptable object to a generated scene. |
I saw your message, seems you deleted it?
I think this is almost correct, but I see a problem: I don't know how we can identify a scene as a SubScene or a regular Scene. Maybe we need a different wrapper type (i.e. |
Yes, I realized there are some other parts that need to be addressed as well, one of them being what you mentioned, so I deleted the message. |
Entity scenes work differently from regular scenes.
Opening this issue even though entities is still in preview (though not for long if I heard right). I don't know if they will be modifying this, so perhaps it is too early, but I'll describe the current state.
Personally I've created a scene that contains all my SubScenes and I've added it to the build settings scene list. This works fine.
The text was updated successfully, but these errors were encountered: