文档

Unity Engine

Unity Engine

SetGlobalInteger

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

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