<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ActionEvent/targetEntity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation11ActionEventV12targetEntityAA0F0CSgvp"
  },
  "title" : "targetEntity"
}
-->

# targetEntity

The entity the bind target references.

```
let targetEntity: Entity?
```

## Discussion

For example, if a bind target references an entity’s transform (i.e. `.transform`), this value is set to that entity.

This may differ from the entity property in the playback controller if the bind target references an entity
other than the entity that the animation was played on.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)