Struct MultiPositionConstraintJob | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct MultiPositionConstraintJob

    The MultiPosition constraint job.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    public struct MultiPositionConstraintJob : IWeightedAnimationJob, IAnimationJob

    Fields

    axesMask

    Axes mask. Rotation will apply on the local axis for a value of 1.0, and will be kept as is for a value of 0.0.

    Declaration
    public Vector3 axesMask
    Field Value
    Type Description
    Vector3

    driven

    The Transform handle for the constrained object Transform.

    Declaration
    public ReadWriteTransformHandle driven
    Field Value
    Type Description
    ReadWriteTransformHandle

    drivenOffset

    The post-translation offset applied to the constrained object.

    Declaration
    public Vector3Property drivenOffset
    Field Value
    Type Description
    Vector3Property

    drivenParent

    The Transform handle for the constrained object parent Transform.

    Declaration
    public ReadOnlyTransformHandle drivenParent
    Field Value
    Type Description
    ReadOnlyTransformHandle

    sourceOffsets

    List of offsets to apply to source rotations if maintainOffset is enabled.

    Declaration
    public NativeArray<Vector3> sourceOffsets
    Field Value
    Type Description
    NativeArray<Vector3>

    sourceTransforms

    List of Transform handles for the source objects.

    Declaration
    public NativeArray<ReadOnlyTransformHandle> sourceTransforms
    Field Value
    Type Description
    NativeArray<ReadOnlyTransformHandle>

    sourceWeights

    List of weights for the source objects.

    Declaration
    public NativeArray<PropertyStreamHandle> sourceWeights
    Field Value
    Type Description
    NativeArray<PropertyStreamHandle>

    weightBuffer

    Buffer used to store weights during job execution.

    Declaration
    public NativeArray<float> weightBuffer
    Field Value
    Type Description
    NativeArray<Single>

    Properties

    jobWeight

    The main weight given to the constraint. This is a value in between 0 and 1.

    Declaration
    public FloatProperty jobWeight { get; set; }
    Property Value
    Type Description
    FloatProperty
    Implements
    IWeightedAnimationJob.jobWeight

    Methods

    ProcessAnimation(AnimationStream)

    Defines what to do when processing the animation.

    Declaration
    public void ProcessAnimation(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements
    IAnimationJob.ProcessAnimation(AnimationStream)

    ProcessRootMotion(AnimationStream)

    Defines what to do when processing the root motion.

    Declaration
    public void ProcessRootMotion(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements
    IAnimationJob.ProcessRootMotion(AnimationStream)
    Back to top
    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