文档

Unity Engine

Unity Engine

SetInts

Sets the values for a int array uniform.
阅读时间1 分钟最后更新于 1 个月前

Definition

SetInts(string, int[])

Sets the values for a int array uniform.
public void SetInts(string name, params int[] values)

Parameters

name

The name of the property being set.

values

The int array to set.

SetInts(int, int[])

Sets the values for a int array uniform.
public void SetInts(int nameID, params int[] values)

Parameters

nameID

The ID of the property as given by Shader.PropertyToID.

values

The int array to set.