#Small bug in Unity.Scenes ResolveSceneReferenceSystem

1 messages · Page 1 of 1 (latest)

candid oracle
#

I don't know if Unity staff will see this, but I believe I spotted a bug in the Unity.Scenes system.

Inside ResolveSceneReferenceSystem's OnCreate, there is a GetExistingSystem<SceneSystem>(). I believe it should be GetOrCreateSystem<SceneSystem>(). Otherwise, if systems are created in the wrong order, ResolveSceneReferenceSystem gets a null entity.

That's the issue I encountered when I made my own world bootsrap.

solid hearth
#

on the contrary sir! GetOrCreateSystem is the devil, and GetExistingSystem is the best of a bad systems-referencing-other-systems situation.

it's on my todo to provide a way to do custom bootstrap that more easily allows you to respect CreateAfter/CreateBefore