docs.unity3d.com
    Show / Hide Table of Contents

    Struct MultiAimConstraintData

    The MultiAim constraint data.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [Serializable]
    public struct MultiAimConstraintData : IAnimationJobData, IMultiAimConstraintData

    Properties

    aimAxis

    Specifies the local aim axis of the constrained Transform to use in order to orient itself to the Source Transforms.

    Declaration
    public MultiAimConstraintData.Axis aimAxis { get; set; }
    Property Value
    Type Description
    MultiAimConstraintData.Axis

    constrainedObject

    The Transform affected by the constraint Source Transforms.

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

    constrainedXAxis

    Toggles whether the constrained Transform will rotate along the X axis.

    Declaration
    public bool constrainedXAxis { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IMultiAimConstraintData.constrainedXAxis

    constrainedYAxis

    Toggles whether the constrained Transform will rotate along the Y axis.

    Declaration
    public bool constrainedYAxis { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IMultiAimConstraintData.constrainedYAxis

    constrainedZAxis

    Toggles whether the constrained Transform will rotate along the Z axis.

    Declaration
    public bool constrainedZAxis { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IMultiAimConstraintData.constrainedZAxis

    limits

    Minimum and maximum value of the rotation permitted for the constraint. The values are in degrees.

    Declaration
    public Vector2 limits { get; set; }
    Property Value
    Type Description
    Vector2

    maintainOffset

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

    Declaration
    public bool maintainOffset { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IMultiAimConstraintData.maintainOffset

    offset

    Post-Rotation 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 orientation. Each source has a weight from 0 to 1.

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

    upAxis

    Specified the local up axis of the constrained Transform to use in order to orient itself to the Source Transforms.

    Declaration
    public MultiAimConstraintData.Axis upAxis { get; set; }
    Property Value
    Type Description
    MultiAimConstraintData.Axis

    worldUpAxis

    Specifies the local aim axis of the constrained Transform to use in order to orient itself to the Source Transforms.

    Declaration
    public MultiAimConstraintData.Axis worldUpAxis { get; set; }
    Property Value
    Type Description
    MultiAimConstraintData.Axis

    worldUpObject

    The Transform used to calculate the upward direction. This is used when World Up Type is set to WorldUpType.ObjectUp or WorldUpType.ObjectRotationUp.

    Declaration
    public Transform worldUpObject { get; set; }
    Property Value
    Type Description
    Transform
    Implements
    IMultiAimConstraintData.worldUpObject

    worldUpType

    Specifies which mode to use to keep the upward direction of the constrained Object.

    Declaration
    public MultiAimConstraintData.WorldUpType worldUpType { get; set; }
    Property Value
    Type Description
    MultiAimConstraintData.WorldUpType
    See Also
    MultiAimConstraintJob.WorldUpType

    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()

    IMultiAimConstraintData.aimAxis

    Specifies the local aim axis of the constrained Transform to use in order to orient itself to the Source Transforms.

    Declaration
    readonly Vector3 IMultiAimConstraintData.aimAxis { get; }
    Returns
    Type Description
    Vector3
    Implements
    IMultiAimConstraintData.aimAxis

    IMultiAimConstraintData.maxLimitFloatProperty

    The path to the maximum limit property in the constraint component.

    Declaration
    readonly string IMultiAimConstraintData.maxLimitFloatProperty { get; }
    Returns
    Type Description
    String
    Implements
    IMultiAimConstraintData.maxLimitFloatProperty

    IMultiAimConstraintData.minLimitFloatProperty

    The path to the minimum limit property in the constraint component.

    Declaration
    readonly string IMultiAimConstraintData.minLimitFloatProperty { get; }
    Returns
    Type Description
    String
    Implements
    IMultiAimConstraintData.minLimitFloatProperty

    IMultiAimConstraintData.offsetVector3Property

    The path to the offset property in the constraint component.

    Declaration
    readonly string IMultiAimConstraintData.offsetVector3Property { get; }
    Returns
    Type Description
    String
    Implements
    IMultiAimConstraintData.offsetVector3Property

    IMultiAimConstraintData.sourceObjectsProperty

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

    Declaration
    readonly string IMultiAimConstraintData.sourceObjectsProperty { get; }
    Returns
    Type Description
    String
    Implements
    IMultiAimConstraintData.sourceObjectsProperty

    IMultiAimConstraintData.upAxis

    Specified the local up axis of the constrained Transform to use in order to orient itself to the Source Transforms.

    Declaration
    readonly Vector3 IMultiAimConstraintData.upAxis { get; }
    Returns
    Type Description
    Vector3
    Implements
    IMultiAimConstraintData.upAxis

    IMultiAimConstraintData.worldUpAxis

    A static vector in world coordinates that is the general upward direction. This is used when World Up Type is set to WorldUpType.Vector.

    Declaration
    readonly Vector3 IMultiAimConstraintData.worldUpAxis { get; }
    Returns
    Type Description
    Vector3
    Implements
    IMultiAimConstraintData.worldUpAxis

    IMultiAimConstraintData.worldUpType

    Specifies which mode to use to keep the upward direction of the constrained Object.

    Declaration
    readonly int IMultiAimConstraintData.worldUpType { get; }
    Returns
    Type Description
    Int32
    Implements
    IMultiAimConstraintData.worldUpType
    See Also
    MultiAimConstraintJob.WorldUpType
    In This Article
    • Properties
      • aimAxis
      • constrainedObject
      • constrainedXAxis
      • constrainedYAxis
      • constrainedZAxis
      • limits
      • maintainOffset
      • offset
      • sourceObjects
      • upAxis
      • worldUpAxis
      • worldUpObject
      • worldUpType
    • Explicit Interface Implementations
      • IAnimationJobData.IsValid()
      • IAnimationJobData.SetDefaultValues()
      • IMultiAimConstraintData.aimAxis
      • IMultiAimConstraintData.maxLimitFloatProperty
      • IMultiAimConstraintData.minLimitFloatProperty
      • IMultiAimConstraintData.offsetVector3Property
      • IMultiAimConstraintData.sourceObjectsProperty
      • IMultiAimConstraintData.upAxis
      • IMultiAimConstraintData.worldUpAxis
      • IMultiAimConstraintData.worldUpType
    Back to top
    Terms of use
    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