docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BlendConstraintData

    The Blend constraint data.

    Implements
    IAnimationJobData
    IBlendConstraintData
    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 BlendConstraintData : IAnimationJobData, IBlendConstraintData

    Properties

    blendPosition

    Toggles whether position is blended in the constraint.

    Declaration
    public bool blendPosition { get; set; }
    Property Value
    Type Description
    bool

    blendRotation

    Toggles whether rotation is blended in the constraint.

    Declaration
    public bool blendRotation { get; set; }
    Property Value
    Type Description
    bool

    constrainedObject

    The Transform affected by the two source Transforms.

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

    maintainPositionOffsets

    This is used to maintain the current position offset from the constrained GameObject to the source GameObjects.

    Declaration
    public bool maintainPositionOffsets { get; set; }
    Property Value
    Type Description
    bool

    maintainRotationOffsets

    This is used to maintain the current rotation offset from the constrained GameObject to the source GameObjects.

    Declaration
    public bool maintainRotationOffsets { get; set; }
    Property Value
    Type Description
    bool

    positionWeight

    Specifies the weight with which to blend position. A weight of zero will result in the position of sourceObjectA, while a weight of one will result in the position of sourceObjectB.

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

    rotationWeight

    Specifies the weight with which to blend rotation. A weight of zero will result in the rotation of sourceObjectA, while a weight of one will result in the rotation of sourceObjectB.

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

    sourceObjectA

    First Transform in blend.

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

    sourceObjectB

    Second Transform in blend.

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

    Implements

    IAnimationJobData
    IBlendConstraintData
    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)