SetGlobalInteger
Adds a command to set the value of a given property for all Shaders, where the property is an integer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetGlobalInteger(int, int)
Adds a command to set the value of a given property for all Shaders, where the property is an integer.
public void SetGlobalInteger(int nameID, int value)
Parameters
Remarks
When Unity executes the CommandBuffer, it sets the value of the given property for all Shaders. The effect is as the same as calling Shader.SetGlobalInteger.
For properties that use the legacy ShaderLab type , which are internally represented as floats, use CommandBuffer.SetGlobalInt.
IntSetGlobalInteger(string, int)
Adds a command to set the value of a given property for all Shaders, where the property is an integer.
public void SetGlobalInteger(string name, int value)
Parameters
Remarks
When Unity executes the CommandBuffer, it sets the value of the given property for all Shaders. The effect is as the same as calling Shader.SetGlobalInteger.
For properties that use the legacy ShaderLab type , which are internally represented as floats, use CommandBuffer.SetGlobalInt.
Int