GenericBindingUtility.SetValues

声明

public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<float> values);

声明

public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> values);

参数

boundProperties 要设置值的 BoundProperty 列表。
values 要设置的浮点数或整数列表。

描述

为每个 [[BoundProperty] 设置浮点数或整数值。

如果 NativeArray 尚未创建,此方法将引发 ArgumentException。

如果索引列表与 boundProperties 列表的长度不匹配,此方法将引发 ArgumentException。


声明

public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<float> values);

声明

public static void SetValues(NativeArray<BoundProperty> boundProperties, NativeArray<int> indices, NativeArray<int> values);

参数

boundProperties 要设置值的 BoundProperty 列表。
indices 每个 BoundProperty 值将从中读取的索引列表。
values 浮点数或整数列表。

描述

为每个 [[BoundProperty] 设置浮点数/整数值,并使用 indices 中定义的索引处的值。

如果 NativeArray 尚未创建,此方法将引发 ArgumentException。

如果索引列表与 boundProperties 列表的长度不匹配,此方法将引发 ArgumentException。

如果 indices 列表中的索引超出范围,此方法将引发 IndexOutOfRangeException。


Did you find this page useful? Please give it a rating: