Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

name

The name of the property.

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

nameID

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

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

name

The name of the property.

values

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

nameID

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

values

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.