Struct SimulationSingleton
A simulation singleton. Use it to get simulation used by the physics engine. Call (SystemBase|SystemAPI|EntityQuery).GetSingleton<SimulationSingleton() to get read-only access. Call (SystemBase|SystemAPI|EntityQuery).GetSingletonRW<SimulationSingleton() to get read-write access.
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct SimulationSingleton : IComponentData, IQueryTypeParameter
Fields
| Name | Description |
|---|---|
| Type | The simulation type. |
Methods
| Name | Description |
|---|---|
| AsSimulation() | Converts this object to a simulation. |
| InitializeFromSimulation(ref Simulation) | Initializes this object from the given simulation. |