TryGetAnimationCurve(string, string, out AnimationCurve)
Retrieves the AnimationCurve for an animated light property in a specific AnimationClip.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor
TryGetAnimationCurve(string, string, AnimationCurve)
public bool TryGetAnimationCurve(string clipName, string propertyName, out AnimationCurve value)
Parameters
The name of the AnimationClip.
The name of the light property.
The retrieved AnimationCurve, if one exists for the specified light property.
Returns
Type | Description |
|---|---|
| bool | Returns true if the light property is animated. Returns false otherwise. |