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

# FromToByAction.TransformMode

Options available to determine the space the bound entity should be relative to.

```
enum TransformMode
```

## Overview

The [`FromToByAction`](/documentation/RealityKit/FromToByAction) structure accepts this enumeration as an
initializer argument when the [`FromToByAction`](/documentation/RealityKit/FromToByAction) value is a [`Transform`](/documentation/RealityKit/Transform) type.

## Topics

### Enumeration Cases

[`case local`](/documentation/RealityKit/FromToByAction/TransformMode/local)

The provided transforms are relative to the transform of the bound entity.

[`case parent`](/documentation/RealityKit/FromToByAction/TransformMode/parent)

The provided transforms are relative to the bound entities parent transform.

[`case relative(to: ActionEntityResolution)`](/documentation/RealityKit/FromToByAction/TransformMode/relative(to:))

The provided transforms are relative to the resolved entities transform.

[`case scene`](/documentation/RealityKit/FromToByAction/TransformMode/scene)

The provided transform is relative to the scene, in world space.

### Type Properties

[`static var `default`: FromToByAction<Value>.TransformMode`](/documentation/RealityKit/FromToByAction/TransformMode/default)

Default transform mode used by the specializations which use transform mode.

## Relationships

### Conforms To

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

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

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

---

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)