TryGetAnimationCurve(string, string, out AnimationCurve)
Retrieves the AnimationCurve for an animated material property in a specific AnimationClip.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor.CoreModule
TryGetAnimationCurve(string, string, AnimationCurve)
public bool TryGetAnimationCurve(string clipName, string propertyName, out AnimationCurve value)
Parameters
The name of the AnimationClip.
The name of the material property.
The retrieved AnimationCurve, if one exists for the specified material property.
Returns
Type | Description |
|---|---|
| bool | Returns true if the material property is animated. Returns false otherwise. |