Struct TwoBoneIKConstraintData | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TwoBoneIKConstraintData

    The TwoBoneIK constraint data.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [Serializable]
    public struct TwoBoneIKConstraintData : IAnimationJobData, ITwoBoneIKConstraintData

    Properties

    hint

    The IK hint transform.

    Declaration
    public Transform hint { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    ITwoBoneIKConstraintData.hint

    hintWeight

    The weight for which hint transform has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public float hintWeight { get; set; }
    Property Value
    Type Description
    Single

    maintainTargetPositionOffset

    This is used to maintain the offset of the tip position to the target position.

    Declaration
    public bool maintainTargetPositionOffset { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ITwoBoneIKConstraintData.maintainTargetPositionOffset

    maintainTargetRotationOffset

    This is used to maintain the offset of the tip rotation to the target rotation.

    Declaration
    public bool maintainTargetRotationOffset { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ITwoBoneIKConstraintData.maintainTargetRotationOffset

    mid

    The mid transform of the two bones hierarchy.

    Declaration
    public Transform mid { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    ITwoBoneIKConstraintData.mid

    root

    The root transform of the two bones hierarchy.

    Declaration
    public Transform root { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    ITwoBoneIKConstraintData.root

    target

    The IK target transform.

    Declaration
    public Transform target { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    ITwoBoneIKConstraintData.target

    targetPositionWeight

    The weight for which target position has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public float targetPositionWeight { get; set; }
    Property Value
    Type Description
    Single

    targetRotationWeight

    The weight for which target rotation has an effect on IK calculations. This is a value in between 0 and 1.

    Declaration
    public float targetRotationWeight { get; set; }
    Property Value
    Type Description
    Single

    tip

    The tip transform of the two bones hierarchy.

    Declaration
    public Transform tip { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    ITwoBoneIKConstraintData.tip

    Explicit Interface Implementations

    IAnimationJobData.IsValid()

    Retrieves the data valid state.

    Declaration
    bool IAnimationJobData.IsValid()
    Returns
    Type Description
    Boolean

    Returns true if data can be successfully used in a constraint. Returns false otherwise.

    Implements
    IAnimationJobData.IsValid()

    IAnimationJobData.SetDefaultValues()

    Resets values to defaults.

    Declaration
    void IAnimationJobData.SetDefaultValues()
    Implements
    IAnimationJobData.SetDefaultValues()

    ITwoBoneIKConstraintData.hintWeightFloatProperty

    The path to the hint weight property in the constraint component.

    Declaration
    string ITwoBoneIKConstraintData.hintWeightFloatProperty { get; }
    Returns
    Type Description
    String
    Implements
    ITwoBoneIKConstraintData.hintWeightFloatProperty

    ITwoBoneIKConstraintData.targetPositionWeightFloatProperty

    The path to the target position weight property in the constraint component.

    Declaration
    string ITwoBoneIKConstraintData.targetPositionWeightFloatProperty { get; }
    Returns
    Type Description
    String
    Implements
    ITwoBoneIKConstraintData.targetPositionWeightFloatProperty

    ITwoBoneIKConstraintData.targetRotationWeightFloatProperty

    The path to the target rotation weight property in the constraint component.

    Declaration
    string ITwoBoneIKConstraintData.targetRotationWeightFloatProperty { get; }
    Returns
    Type Description
    String
    Implements
    ITwoBoneIKConstraintData.targetRotationWeightFloatProperty
    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