GetGlobalFloat
Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetGlobalFloat(string)
Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
public static float GetGlobalFloat(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| float |
GetGlobalFloat(int)
Gets a global float property for all shaders previously set using Shader.SetGlobalFloat.
public static float GetGlobalFloat(int nameID)
Parameters
The name ID of the property retrieved by Shader.PropertyToID.
Returns
Type | Description |
|---|---|
| float |