---
title: entity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/actionevent/entity
---

# entity

The entity that owns the BehaviorTreeComponent and initiated this action.

## Declaration

```swift
var entity: Entity? { get }
```

## Discussion

Discussion This is the entity on which the behavior tree is running,.
