<!--
{
  "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/init(to:by:mode:timing:isAdditive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14FromToByActionVA2A9TransformVRszrlE2to2by4mode6timing10isAdditiveACyAEGAE_AeC0G4ModeOyAE_GAA23AnimationTimingFunctionVSbtcfc"
  },
  "title" : "init(to:by:mode:timing:isAdditive:)"
}
-->

# init(to:by:mode:timing:isAdditive:)

Creates a action to animate towards a final value.
The starting value is determined by adding the inverse of `by` to the
specified final value.

```
init(to: Value, by: Value, mode: FromToByAction<Value>.TransformMode = .default, timing: AnimationTimingFunction = .linear, isAdditive: Bool = false)
```

## Parameters

`to`

Value set at the end of the animation.

`by`

Value used to determine the starting value, relative to the end value.

`mode`

Determines what space the transforms are relative to.

`timing`

Controls the progress of the animation.

`isAdditive`

Specifies whether you can additively blend the output from the action’s animation.

## Discussion

`to - by` → `to`

---

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)