Class RigBuilder | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class RigBuilder

    RigBuilder is the root component that holds the Rigs that create an Animation Rigging hierarchy. Its purpose is to create the PlayableGraph that will be used in the associated Animator component to animate a character with constraints.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    RigBuilder
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [RequireComponent(typeof(Animator))]
    [DisallowMultipleComponent]
    [ExecuteInEditMode]
    [AddComponentMenu("Animation Rigging/Setup/Rig Builder")]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.0?preview=1&subfolder=/manual/index.html")]
    public class RigBuilder : MonoBehaviour, IAnimationWindowPreview, IRigEffectorHolder

    Fields

    onAddRigBuilder

    Notification callback that is sent whenever a RigBuilder calls OnEnable.

    Declaration
    public static RigBuilder.OnAddRigBuilderCallback onAddRigBuilder
    Field Value
    Type Description
    RigBuilder.OnAddRigBuilderCallback

    onRemoveRigBuilder

    Notification callback that is sent whenever a RigBuilder calls OnDisable.

    Declaration
    public static RigBuilder.OnRemoveRigBuilderCallback onRemoveRigBuilder
    Field Value
    Type Description
    RigBuilder.OnRemoveRigBuilderCallback

    Properties

    graph

    Retrieves the PlayableGraph created by this RigBuilder.

    Declaration
    public PlayableGraph graph { get; }
    Property Value
    Type Description
    PlayableGraph

    layers

    Returns a list of RigLayer associated to this RigBuilder.

    Declaration
    public List<RigLayer> layers { get; set; }
    Property Value
    Type Description
    List<RigLayer>

    Methods

    Build()

    Builds the RigBuilder PlayableGraph.

    Declaration
    public bool Build()
    Returns
    Type Description
    Boolean

    Returns true if the RigBuilder has created a valid PlayableGraph. Returns false otherwise.

    BuildPreviewGraph(PlayableGraph, Playable)

    Appends custom Playable nodes to the animation previewer PlayableGraph.

    Declaration
    public Playable BuildPreviewGraph(PlayableGraph graph, Playable inputPlayable)
    Parameters
    Type Name Description
    PlayableGraph graph

    The animation previewer PlayableGraph

    Playable inputPlayable

    The current root of the PlayableGraph

    Returns
    Type Description
    Playable
    Implements
    IAnimationWindowPreview.BuildPreviewGraph(PlayableGraph, Playable)

    Clear()

    Destroys the RigBuilder PlayableGraph and frees associated RigLayers memory.

    Declaration
    public void Clear()

    StartPreview()

    Notification callback when the animation previewer starts previewing an AnimationClip.

    Declaration
    public void StartPreview()
    Implements
    IAnimationWindowPreview.StartPreview()
    Remarks

    This is called by the Animation Window or the Timeline Editor.

    StopPreview()

    Notification callback when the animation previewer stops previewing an AnimationClip.

    Declaration
    public void StopPreview()
    Implements
    IAnimationWindowPreview.StopPreview()
    Remarks

    This is called by the Animation Window or the Timeline Editor.

    UpdatePreviewGraph(PlayableGraph)

    Notification callback when the animation previewer updates its PlayableGraph before sampling an AnimationClip.

    Declaration
    public void UpdatePreviewGraph(PlayableGraph graph)
    Parameters
    Type Name Description
    PlayableGraph graph

    The animation previewer PlayableGraph

    Implements
    IAnimationWindowPreview.UpdatePreviewGraph(PlayableGraph)
    Remarks

    This is called by the Animation Window or the Timeline Editor.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023