docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MultiPositionConstraintData

    The MultiPosition constraint job.

    Implements
    IAnimationJobData
    IMultiPositionConstraintData
    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 MultiPositionConstraintData : IAnimationJobData, IMultiPositionConstraintData

    Properties

    constrainedObject

    The Transform affected by the constraint Source Transforms.

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

    constrainedXAxis

    Toggles whether the constrained transform will translate along the X axis.

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

    constrainedYAxis

    Toggles whether the constrained transform will translate along the Y axis.

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

    constrainedZAxis

    Toggles whether the constrained transform will translate along the Z axis.

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

    maintainOffset

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

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

    offset

    Post-Translation offset applied to the constrained Transform.

    Declaration
    public Vector3 offset { get; set; }
    Property Value
    Type Description
    Vector3

    sourceObjects

    The list of Transforms that influence the constrained Transform position. Each source has a weight from 0 to 1.

    Declaration
    public WeightedTransformArray sourceObjects { get; set; }
    Property Value
    Type Description
    WeightedTransformArray

    Implements

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