Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetGlobalInteger

Sets a global integer property for all shaders.
Read time 1 minuteLast updated 4 days ago

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