文档

Unity Engine

Unity Engine

SetGlobalInteger

Sets a global integer property for all shaders.
阅读时间1 分钟最后更新于 2 天前

Definition

SetGlobalInteger(string, int)

Sets a global integer property for all shaders.
public static void SetGlobalInteger(string name, int value)

Parameters

name

The name of the property.

value

SetGlobalInteger(int, int)

Sets a global integer property for all shaders.
public static void SetGlobalInteger(int nameID, int value)

Parameters

nameID

The name ID of the property retrieved by Shader.PropertyToID.

value