I want to quickly do some tests where I need physics & other systems to run on fixed update, so I create a monoBehaviour that does this:
void Start()
{
if(EnableFixedUpdate)
{
_simulationGroup = World.DefaultGameObjectInjectionWorld.GetOrCreateSystem<SimulationSystemGroup>();
FixedRateUtils.EnableFixedRateWithCatchUp(_simulationGroup, Time.fixedDeltaTime);
}
}
However, this seems to make Unity freeze forever when entering Play mode. The scene is not heavy at all and basically just has one moving cube.
Am I doing anything wrong? Entities 0.10.0 preview6