You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Game resources and game object systems load multiple times when you are opening a project.
To Reproduce
Create a GameObjectSystem and GameResource
publicclassMyGameSystem:GameObjectSystem{publicMyGameSystem(Scenescene):base( scene ){
Listen( Stage.FinishUpdate,10, DoSomething,"DoingSomething");}voidDoSomething(){
Log.Info($"Did something!");// Only run once.
Dispose();}}
[GameResource("My Game Resource","test","A game resource for testing.")]publicclassMyGameResource:GameResource{protectedoverridevoidPostLoad(){
Log.Info($"Loaded {this}");}}
Open your project
They are loaded/created twice.
Note that this is before I clicked play on the scene.
Expected behavior
A game resource should only be loaded once.
A game object system should only be created once per scene.
Describe the bug
Game resources and game object systems load multiple times when you are opening a project.
To Reproduce
Create a GameObjectSystem and GameResource
Open your project
They are loaded/created twice.
Note that this is before I clicked play on the scene.
Expected behavior
A game resource should only be loaded once.
A game object system should only be created once per scene.
Media/Files
Log.log
Project.zip
Additional context
No response
The text was updated successfully, but these errors were encountered: