I recently upgraded to 2019.1 beta and upgraded all packages. Since then my system marked with
[DisableAutoCreation] does not get enabled anymore by the code below (if I remove
[DisableAutoCreation] it runs):
World.Active.GetOrCreateManager<System>().Enabled = true;
ScriptBehaviourUpdateOrder.UpdatePlayerLoop(World.Active);
Did anything change?
ShouldRunSystem() returns true regardless of setting Enabled…
var m = World.Active.GetOrCreateManager<System>();
m.Enabled = true/false;
ScriptBehaviourUpdateOrder.UpdatePlayerLoop(World.Active);
Debug.Log("=========>" + m.ShouldRunSystem());
Cheers, Bas