Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CommandBuffer.SetGlobalVector

Switch to Manual
public function SetGlobalVector(name: string, value: Vector4): void;
public function SetGlobalVector(nameID: int, value: Vector4): void;

Parameters

Description

Add a "set global shader vector property" command.

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.