GetSimulationEntity[] Fails

I’m using GetSimulationEntity to spawn prefabs at runtime, but the call fails. This is a project that has been opened long before scene graph came out of the experimental state. So I’m not sure if that effects it.

I simply do this, in the OnBegin function of my creative device and the call fails.

if (SimulationEntity := GetSimulationEntity[]):
    Print("Got the Simulation Entity")
else:
    Print("Failed to Get the Simulation Entity")

It might be related to this for you?:
image

I believe that you don’t need that specific entity in the scene but I might be wrong about that.

Could this be the cause? Have you tried just placing an empty entity in your map?


Source:

Yep, this was it, looked through this doc multiple times, somehow missed that between the lines. Thanks.

1 Like