docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TwoBoneIKConstraintData

    The TwoBoneIK constraint data.

    Implements
    IAnimationJobData
    ITwoBoneIKConstraintData
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    [Serializable]
    public struct TwoBoneIKConstraintData : IAnimationJobData, ITwoBoneIKConstraintData

    Properties

    hint

    The IK hint transform.

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

    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
    float

    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
    bool

    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
    bool

    mid

    The mid transform of the two bones hierarchy.

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

    root

    The root transform of the two bones hierarchy.

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

    target

    The IK target transform.

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

    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
    float

    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
    float

    tip

    The tip transform of the two bones hierarchy.

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

    Implements

    IAnimationJobData
    ITwoBoneIKConstraintData
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)