GetValues
Retrieves 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
GetValues(NativeArray<BoundProperty>, NativeArray<float>)
Retrieves the float or integer value for each [[BoundProperty].
public static void GetValues(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 values list does not match the length of the boundProperties list.
GetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<float>)
Retrieves the float or integer value for each [[BoundProperty] and writes the value at a different index specified by the indices list.
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<float> values)
Parameters
The list of BoundProperty to get the values from.
The list of indices where each BoundProperty value will be written.
Returns 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.
GetValues(NativeArray<BoundProperty>, NativeArray<int>)
Retrieves the float or integer value for each [[BoundProperty].
public static void GetValues(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 values list does not match the length of the boundProperties list.
GetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<int>)
Retrieves the float or integer value for each [[BoundProperty] and writes the value at a different index specified by the indices list.
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<int> values)
Parameters
The list of BoundProperty to get the values from.
The list of indices where each BoundProperty value will be written.
Returns 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.
GetValues(NativeArray<BoundProperty>, NativeArray<EntityId>)
Retrieves the float or integer value for each [[BoundProperty].
public static void GetValues(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 values list does not match the length of the boundProperties list.
GetValues(NativeArray<BoundProperty>, NativeArray<int>, NativeArray<EntityId>)
Retrieves the float or integer value for each [[BoundProperty] and writes the value at a different index specified by the indices list.
public static void GetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<EntityId> values)
Parameters
The list of BoundProperty to get the values from.
The list of indices where each BoundProperty value will be written.
Returns 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.