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