<!--
{
  "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/ActionEntityResolution",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22ActionEntityResolutionO"
  },
  "title" : "ActionEntityResolution"
}
-->

# ActionEntityResolution

Options available to determine the resolution method for a target entity in an action.

```
enum ActionEntityResolution
```

## Overview

Use this to resolve the entity an action should target. For example, [`ImpulseAction`](/documentation/RealityKit/ImpulseAction)
structure accepts this enumeration as an initializer argument to resolve the entity.

## Topics

### Operators

[`static func == (ActionEntityResolution, ActionEntityResolution) -> Bool`](/documentation/RealityKit/ActionEntityResolution/==(_:_:))

Indicates whether two action entity resolutions are equal.

### Enumeration Cases

[`case entityNamed(String)`](/documentation/RealityKit/ActionEntityResolution/entityNamed(_:))

An option that resolves an entity from the specified name within the scene of the entity playing the action.

[`case entityPath(BindTarget.EntityPath)`](/documentation/RealityKit/ActionEntityResolution/entityPath(_:))

An option that resolves an entity by specifying a bind path relative to the entity playing the action.

### Initializers

[`init(from: any Decoder) throws`](/documentation/RealityKit/ActionEntityResolution/init(from:))

Creates a new instance from a decoder.

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/RealityKit/ActionEntityResolution/encode(to:))

Writes the action entity resolution data into an encoder.

### Type Properties

[`static var sourceEntity: ActionEntityResolution`](/documentation/RealityKit/ActionEntityResolution/sourceEntity)

Resolves to the source entity that is playing the action.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)