Class PhysicsWorldIndexAuthoring
Authoring component to associate a rigid body with the specified physics world.
Inherited Members
Namespace: Unity.Physics.Authoring
Assembly: Unity.Physics.Hybrid.dll
Syntax
[Icon("Packages/com.unity.physics/Unity.Physics.Editor/Editor Default Resources/Icons/d_Rigidbody@64.png")]
[AddComponentMenu("Entities/Physics/Physics World Index")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.physics@latest/index.html?subfolder=/api/Unity.Physics.Authoring.PhysicsWorldIndexAuthoring.html")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Rigidbody))]
public class PhysicsWorldIndexAuthoring : MonoBehaviour
Properties
WorldIndex
The physics world index.
The index of the physics world the rigid body will be associated to. The default physics world has index 0."
Declaration
public uint WorldIndex { get; set; }
Property Value
Type | Description |
---|---|
uint |