GetGradient
Gets the value of a named Gradient property.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetGradient(int)
Gets the value of a named Gradient property.
public Gradient GetGradient(int nameID)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| Gradient | The value for the Gradient you specify. Returns an empty Gradient if VisualEffect.HasGradient returns |
GetGradient(string)
Gets the value of a named Gradient property.
public Gradient GetGradient(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| Gradient | The value for the Gradient you specify. Returns an empty Gradient if VisualEffect.HasGradient returns |