Class PhysicsWorldIndexAuthoring
Authoring component to associate a rigid body with the specified physics world.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Physics.Authoring
Assembly: solution.dll
Syntax
[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
Name | Description |
---|---|
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." |