Scene¶
class · namespace Hazel
The active simulation scene: its entities, components, and settings. Find entities, read or set the SimulationMode, and drive playback from scripts.
Inherits Asset<Scene>
Properties¶
ActionGateSettleSteps¶
static
Settle ticks after each reset before the External Action Gate re-arms. Configurable per scene in the External Action Gate settings; default 20.
ControlRunnerHz¶
static
Frequency (Hz) of the time runner the External Action Gate / AgentService.Step advances. One gated Step is exactly 1/this seconds of sim time. 0 if unavailable.
SimulationMode¶
static
Gets or sets the simulation timing mode. Use SimulationMode.DeterministicHighPerf for RL training to run faster than real-time.
TimeScale¶
static
Methods¶
CreateEntity(string)¶
static
DestroyAllChildren(Entity)¶
static
DestroyEntity(Entity)¶
static
FindEntityByID(ulong)¶
static
FindEntityByTag(string)¶
static
GetEntities()¶
static
InstantiatePrefab(Prefab)¶
static
InstantiatePrefab(Prefab, Transform)¶
static
InstantiatePrefab(Prefab, Vector3)¶
static
InstantiatePrefab(Prefab, Vector3, Vector3)¶
static
InstantiatePrefab(Prefab, Vector3, Vector3, Vector3)¶
static
public static Entity? InstantiatePrefab(Prefab prefab, Vector3 translation, Vector3 rotation, Vector3 scale)
InstantiatePrefabWithParent(Prefab, Entity)¶
static
InstantiatePrefabWithParent(Prefab, Transform, Entity)¶
static
public static Entity? InstantiatePrefabWithParent(Prefab prefab, Transform transform, Entity parent)
InstantiatePrefabWithParent(Prefab, Vector3, Entity)¶
static
public static Entity? InstantiatePrefabWithParent(Prefab prefab, Vector3 translation, Entity parent)
InstantiatePrefabWithParent(Prefab, Vector3, Vector3, Entity)¶
static
public static Entity? InstantiatePrefabWithParent(Prefab prefab, Vector3 translation, Vector3 rotation, Entity parent)
InstantiatePrefabWithParent(Prefab, Vector3, Vector3, Vector3, Entity)¶
static
public static Entity? InstantiatePrefabWithParent(Prefab prefab, Vector3 translation, Vector3 rotation, Vector3 scale, Entity parent)
Source: Hazel/Scene/Scene.cs