SetValues
Sets the float or integer value for each [[BoundProperty].
Read time 4 minutesLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
SetValues(NativeArray<BoundProperty>, NativeArray<float>)
Sets the float or integer value for each [[BoundProperty].
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<float> values)
Parameters
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
SetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<float>)
Sets the float/integer values for each [[BoundProperty] and uses the value at the index define in indices.
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<float> values)
Parameters
The list of BoundProperty to set the values for.
The list of indices where each BoundProperty value will be read.
The list of float or integer values.
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
This method throws an IndexOutOfRangeException if an index in the indices list is out of range.
SetValues(NativeArray<BoundProperty>, NativeArray<int>)
Sets the float or integer value for each [[BoundProperty].
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> values)
Parameters
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
SetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<int>)
Sets the float/integer values for each [[BoundProperty] and uses the value at the index define in indices.
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<int> values)
Parameters
The list of BoundProperty to set the values for.
The list of indices where each BoundProperty value will be read.
The list of float or integer values.
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
This method throws an IndexOutOfRangeException if an index in the indices list is out of range.
SetValues(NativeArray<BoundProperty>, NativeArray<EntityId>)
Sets the float or integer value for each [[BoundProperty].
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<EntityId> values)
Parameters
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
SetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<EntityId>)
Sets the float/integer values for each [[BoundProperty] and uses the value at the index define in indices.
public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<EntityId> values)
Parameters
The list of BoundProperty to set the values for.
The list of indices where each BoundProperty value will be read.
The list of float or integer values.
Remarks
This method throws an ArgumentException if the NativeArray is not yet created.
This method throws an ArgumentException if the indices list does not match the length of the boundProperties list.
This method throws an IndexOutOfRangeException if an index in the indices list is out of range.