docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IMultiPositionConstraintData

    This interface defines the data mapping for the MultiPosition constraint.

    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    public interface IMultiPositionConstraintData

    Properties

    constrainedObject

    The Transform affected by the constraint Source Transforms.

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

    constrainedXAxis

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

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

    constrainedYAxis

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

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

    constrainedZAxis

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

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

    maintainOffset

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

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

    offsetVector3Property

    The path to the offset property in the constraint component.

    Declaration
    string offsetVector3Property { get; }
    Property Value
    Type Description
    string

    sourceObjects

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

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

    sourceObjectsProperty

    The path to the source objects property in the constraint component.

    Declaration
    string sourceObjectsProperty { get; }
    Property Value
    Type Description
    string
    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)