Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetGlobalVector

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

Definition

SetGlobalVector(int, Vector4)

Add a "set global shader vector property" command.
public void SetGlobalVector(int nameID, Vector4 value)

Parameters

nameID


value

Remarks

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

SetGlobalVector(string, Vector4)

Add a "set global shader vector property" command.
public void SetGlobalVector(string name, Vector4 value)

Parameters

name


value

Remarks

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