Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetValues

Retrieves the float or integer value for each [[BoundProperty].
Read time 2 minutesLast updated 6 days ago

Definition

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

The list of BoundProperty to get the values from.

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

The list of BoundProperty to get the values from.

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 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.