Class WeightedTransformArrayBinder
This class is used to create Animation C# jobs handles for WeightedTransformArray.
Namespace: UnityEngine.Animations.Rigging
Syntax
public class WeightedTransformArrayBinder
Methods
BindReadOnlyTransforms(Animator, Component, WeightedTransformArray, out NativeArray<ReadOnlyTransformHandle>)
Creates an array of ReadOnlyTransformHandles representing the new bindings between the Animator and the Transforms in a WeightedTransformArray.
Declaration
public static void BindReadOnlyTransforms(Animator animator, Component component, WeightedTransformArray weightedTransformArray, out NativeArray<ReadOnlyTransformHandle> transforms)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The Animator on which to bind the new handle. |
Component | component | The component owning the WeightedTransformArray property. |
WeightedTransformArray | weightedTransformArray | The WeightedTransformArray property. |
NativeArray<ReadOnlyTransformHandle> | transforms | The resulting array of ReadOnlyTransformHandles. |
BindReadWriteTransforms(Animator, Component, WeightedTransformArray, out NativeArray<ReadWriteTransformHandle>)
Creates an array of ReadWriteTransformHandles representing the new bindings between the Animator and the Transforms in a WeightedTransformArray.
Declaration
public static void BindReadWriteTransforms(Animator animator, Component component, WeightedTransformArray weightedTransformArray, out NativeArray<ReadWriteTransformHandle> transforms)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The Animator on which to bind the new handle. |
Component | component | The component owning the WeightedTransformArray property. |
WeightedTransformArray | weightedTransformArray | The WeightedTransformArray property. |
NativeArray<ReadWriteTransformHandle> | transforms | The resulting array of ReadWriteTransformHandles. |
BindWeights(Animator, Component, WeightedTransformArray, String, out NativeArray<PropertyStreamHandle>)
Creates an array of PropertyStreamHandle representing the new bindings between the Animator and the weights in a WeightedTransformArray.
Declaration
public static void BindWeights(Animator animator, Component component, WeightedTransformArray weightedTransformArray, string name, out NativeArray<PropertyStreamHandle> weights)
Parameters
Type | Name | Description |
---|---|---|
Animator | animator | The Animator on which to bind the new handle. |
Component | component | The component owning the WeightedTransformArray property. |
WeightedTransformArray | weightedTransformArray | The WeightedTransformArray property. |
String | name | |
NativeArray<PropertyStreamHandle> | weights |