# StateMachineBehaviourContext

> This class contains all the owner's information for this State Machine Behaviour.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Animations](/engine/6000.0/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor

```csharp
public class StateMachineBehaviourContext
```

## Remarks

Additional Resources: [AnimatorController.FindStateMachineBehaviourContext](/engine/6000.0/script-reference/unityeditor/animations/animatorcontroller/findstatemachinebehaviourcontext.md).

## Fields

| Value                                                                                                                           | Description                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [animatorController](/engine/6000.0/script-reference/unityeditor/animations/statemachinebehaviourcontext/animatorcontroller.md) | The [AnimatorController](/engine/6000.0/script-reference/unityeditor/animations/animatorcontroller.md) that owns this state machine behaviour.                                                                                                                     |
| [animatorObject](/engine/6000.0/script-reference/unityeditor/animations/statemachinebehaviourcontext/animatorobject.md)         | The object that owns this state machine behaviour. Could be an [AnimatorState](/engine/6000.0/script-reference/unityeditor/animations/animatorstate.md) or [AnimatorStateMachine](/engine/6000.0/script-reference/unityeditor/animations/animatorstatemachine.md). |
| [layerIndex](/engine/6000.0/script-reference/unityeditor/animations/statemachinebehaviourcontext/layerindex.md)                 | The animator's layer index that owns this state machine behaviour.                                                                                                                                                                                                 |
