# functionName

> The name of the function that will be called.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public string functionName { get; set; }
```

### Remarks

This is the same as calling gameObject.SendMessage(animationEvent.functionName, animationEvent). The function called can have zero or a single argument.  See the script example at [AnimationEvent](/engine/6000.5/script-reference/unityengine/animationevent.md) to see how `functionName` can be used.
