Class Rig
The Rig component is used to group constraints under its GameObject local hierarchy.
Implements
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: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
[DisallowMultipleComponent]
[AddComponentMenu("Animation Rigging/Setup/Rig")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.3/manual/RiggingWorkflow.html#rig-component")]
public class Rig : MonoBehaviour, IRigEffectorHolder
Properties
effectors
Declaration
public IEnumerable<RigEffectorData> effectors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<RigEffectorData> |
weight
The weight given to this rig and its associated constraints. This is a value in between 0 and 1.
Declaration
public float weight { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
AddEffector(Transform, Style)
Adds a new effector to the IRigEffectorHolder.
Declaration
public void AddEffector(Transform transform, RigEffectorData.Style style)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform represented by the effector. |
RigEffectorData.Style | style | The visual style of the effector. |
ContainsEffector(Transform)
Queries whether there is an effector for the specified Transform.
Declaration
public bool ContainsEffector(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform to query. |
Returns
Type | Description |
---|---|
bool | True if there is an effector for this transform. False otherwise. |
RemoveEffector(Transform)
Removes an effector from the IRigEffectorHolder.
Declaration
public void RemoveEffector(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform from which to remove the effector. |