ドキュメント

Unity Engine

Unity Engine

SetValues

Sets the float or integer value for each [[BoundProperty].
読み終わるまでの所要時間 4 分最終更新 1ヶ月前

Definition

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

The list of BoundProperty to set the values for.

The list of float or integer values to set.

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

The list of BoundProperty to set the values for.

The list of float or integer values to set.

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

The list of BoundProperty to set the values for.

The list of float or integer values to set.

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.