SetGlobalFloatArray
Sets a global float array property for all shaders.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetGlobalFloatArray(string, List<float>)
Sets a global float array property for all shaders.
public static void SetGlobalFloatArray(string name, List<float> 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.SetGlobalFloat.
SetGlobalFloatArray(int, List<float>)
Sets a global float array property for all shaders.
public static void SetGlobalFloatArray(int nameID, List<float> 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.SetGlobalFloat.
SetGlobalFloatArray(string, float[])
Sets a global float array property for all shaders.
public static void SetGlobalFloatArray(string name, float[] 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.SetGlobalFloat.
SetGlobalFloatArray(int, float[])
Sets a global float array property for all shaders.
public static void SetGlobalFloatArray(int nameID, float[] 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.SetGlobalFloat.