SetGlobalVectorArray
Sets a global vector array property for all shaders.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetGlobalVectorArray(string, List<Vector4>)
Sets a global vector array property for all shaders.
public static void SetGlobalVectorArray(string name, List<Vector4> values)
Parameters
Remarks
Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).
Additional Resources: Shader.SetGlobalVector.
SetGlobalVectorArray(int, List<Vector4>)
Sets a global vector array property for all shaders.
public static void SetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
Remarks
Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).
Additional Resources: Shader.SetGlobalVector.
SetGlobalVectorArray(string, Vector4[])
Sets a global vector array property for all shaders.
public static void SetGlobalVectorArray(string name, Vector4[] values)
Parameters
Remarks
Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).
Additional Resources: Shader.SetGlobalVector.
SetGlobalVectorArray(int, Vector4[])
Sets a global vector array property for all shaders.
public static void SetGlobalVectorArray(int nameID, Vector4[] values)
Parameters
Remarks
Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).
Additional Resources: Shader.SetGlobalVector.