Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetGlobalColor

Add a "set global shader color property" command.
Read time 1 minuteLast updated 4 days ago

Definition

SetGlobalColor(int, Color)

Add a "set global shader color property" command.
public void SetGlobalColor(int nameID, Color value)

Parameters

nameID


value

Remarks

When the command buffer will be executed, a global shader color property will be set at this point. The effect is as if Shader.SetGlobalColor was called.

SetGlobalColor(string, Color)

Add a "set global shader color property" command.
public void SetGlobalColor(string name, Color value)

Parameters

name


value

Remarks

When the command buffer will be executed, a global shader color property will be set at this point. The effect is as if Shader.SetGlobalColor was called.