# TryGetAnimationCurve(string, string, out AnimationCurve)

> Retrieves the AnimationCurve for an animated light property in a specific AnimationClip.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AssetImporters](/engine/6000.0/script-reference/unityeditor/assetimporters.md)
* **Assembly:** UnityEditor

## TryGetAnimationCurve(string, string, AnimationCurve)

```csharp
public bool TryGetAnimationCurve(string clipName, string propertyName, out AnimationCurve value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the AnimationClip.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the light property.**** (\[AnimationCurve]\(/engine/6000.0/script-reference/unityengine/animationcurve)): The retrieved AnimationCurve, if one exists for the specified light property.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the light property is animated. Returns false otherwise. |
