Class BuildPhysicsWorld
Inheritance
BuildPhysicsWorld
Inherited Members
Unity.Entities.SystemBase.UnmanagedUpdate$BurstManaged(System.IntPtr, Unity.Entities.SystemDependencySafetyUtility.SafetyErrorDetails)
Syntax
[UpdateInGroup(typeof(FixedStepSimulationSystemGroup))]
[UpdateBefore(typeof(StepPhysicsWorld))]
[AlwaysUpdateSystem]
public class BuildPhysicsWorld : SystemBase
Fields
PhysicsData
Declaration
public PhysicsWorldData PhysicsData
Field Value
WorldFilter
Declaration
public PhysicsWorldIndex WorldFilter
Field Value
Properties
CollisionWorldProxyGroup
Declaration
public EntityQuery CollisionWorldProxyGroup { get; }
Property Value
DynamicEntityGroup
Declaration
public EntityQuery DynamicEntityGroup { get; }
Property Value
JointEntityGroup
Declaration
public EntityQuery JointEntityGroup { get; }
Property Value
PhysicsWorld
Declaration
public ref PhysicsWorld PhysicsWorld { get; }
Property Value
StaticEntityGroup
Declaration
public EntityQuery StaticEntityGroup { get; }
Property Value
Methods
Declaration
[Obsolete("AddInputDependency() has been deprecated. Please call RegisterPhysicsRuntimeSystemReadWrite() or RegisterPhysicsRuntimeSystemReadOnly() in your system's OnStartRunning() to achieve the same effect. (RemovedAfter 2021-05-01)", true)]
public void AddInputDependency(JobHandle inputDep)
Parameters
Adds the dependency that BuildPhysicsWorld will complete on the next OnUpdate() call.
Multiple dependencies can be added this way (they are combined).
BuildPhysicsWorld resets the PhysicsWorld immediately in the OnUpdate() method (not through jobs),
so any jobs that rely on that data should use this to make sure their data is not ruined before they access it.
Declaration
public void AddInputDependencyToComplete(JobHandle dependencyToComplete)
Parameters
Type |
Name |
Description |
JobHandle |
dependencyToComplete |
|
GetOutputDependency()
Declaration
[Obsolete("GetOutputDependency() has been deprecated. Please call RegisterPhysicsRuntimeSystemReadWrite() or RegisterPhysicsRuntimeSystemReadOnly() in your system's OnStartRunning() to achieve the same effect. (RemovedAfter 2021-05-01)", true)]
public JobHandle GetOutputDependency()
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnStartRunning()
Declaration
protected override void OnStartRunning()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides
Extension Methods