Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Shader.GetGlobalVector

Switch to Manual

Declaration

public static Vector4 GetGlobalVector(string name);

Declaration

public static Vector4 GetGlobalVector(int nameID);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.

Description

Gets a global vector property for all shaders previously set using SetGlobalVector.