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

    Class RigLayer

    The RigLayer is used by the RigBuilder to control in which order rigs will be evaluated and whether they are active or not.

    Inheritance
    Object
    RigLayer
    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [Serializable]
    public class RigLayer : IRigLayer

    Constructors

    RigLayer(Rig, Boolean)

    Constructor.

    Declaration
    public RigLayer(Rig rig, bool active = true)
    Parameters
    Type Name Description
    Rig rig

    The rig represented by this rig layer.

    Boolean active

    The active state of the rig layer.

    Properties

    active

    The active state. True if the RigLayer is active, false otherwise.

    Declaration
    public bool active { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IRigLayer.active

    constraints

    The list of constraints associated with the RigLayer.

    Declaration
    public IRigConstraint[] constraints { get; }
    Property Value
    Type Description
    IRigConstraint[]
    Implements
    IRigLayer.constraints

    isInitialized

    Returns true if RigLayer was initialized or false otherwise.

    Declaration
    public bool isInitialized { get; }
    Property Value
    Type Description
    Boolean
    See Also
    Initialize(Animator)

    jobs

    The list of jobs built from constraints associated with the RigLayer.

    Declaration
    public IAnimationJob[] jobs { get; }
    Property Value
    Type Description
    IAnimationJob[]
    Implements
    IRigLayer.jobs

    name

    The RigLayer name.

    Declaration
    public string name { get; }
    Property Value
    Type Description
    String
    Implements
    IRigLayer.name

    rig

    The Rig associated to the RigLayer

    Declaration
    public Rig rig { get; }
    Property Value
    Type Description
    Rig
    Implements
    IRigLayer.rig

    Methods

    Initialize(Animator)

    Initializes the RigLayer. This will retrieve the constraints associated with the Rig and create the animation jobs required by the PlayableGraph.

    Declaration
    public bool Initialize(Animator animator)
    Parameters
    Type Name Description
    Animator animator

    The Animator used to animate the RigLayer constraints.

    Returns
    Type Description
    Boolean

    True if RigLayer was initialized properly, false otherwise.

    Implements
    IRigLayer.Initialize(Animator)

    IsValid()

    Queries whether the RigLayer is valid.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    Boolean

    True if RigLayer is valid, false otherwise.

    Implements
    IRigLayer.IsValid()

    Reset()

    Resets the RigLayer. This will destroy the animation jobs and free up memory.

    Declaration
    public void Reset()
    Implements
    IRigLayer.Reset()

    Update()

    Updates the RigLayer jobs. This is called during the Update loop before the Animator evaluates the PlayableGraph.

    Declaration
    public void Update()
    Implements
    IRigLayer.Update()
    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