<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/BlendTreeAnimation/init(_:name:isAdditive:bindTarget:blendLayer:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18BlendTreeAnimationV_4name10isAdditive10bindTarget10blendLayer10repeatMode04fillN09trimStart0P3End0P8Duration6offset5delay5speedACyxGAA0cD4Node_p_SSSbAA04BindJ0OSgs5Int32VAA0e6RepeatN0OAA0e4FillN0VSdSgA_A_S2dSftcfc"
  },
  "title" : "init(_:name:isAdditive:bindTarget:blendLayer:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)"
}
-->

# init(_:name:isAdditive:bindTarget:blendLayer:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)

Creates a unique animation from a combination of other animations in the
form of a tree.

```
init(_ root: any BlendTreeNode, name: String = "", isAdditive: Bool = false, bindTarget: BindTarget? = nil, blendLayer: Int32 = 0, repeatMode: AnimationRepeatMode = .none, fillMode: AnimationFillMode = [], trimStart: TimeInterval? = nil, trimEnd: TimeInterval? = nil, trimDuration: TimeInterval? = nil, offset: TimeInterval = 0, delay: TimeInterval = 0, speed: Float = 1)
```

## Parameters

`root`

The first node in a tree of animations.

`name`

A textual name for the animation.

`isAdditive`

A Boolean value that indicates whether the animation
builds on the current state of the target entity or resets the state
before running.

`bindTarget`

A textual name that identifies the particular property
that animates.

`blendLayer`

The order in which the framework composites the animation
into the view.

`repeatMode`

An option that determines how the animation repeats.

`fillMode`

The behavior when the animated property reaches its end value.

`trimStart`

The optional time, in seconds, at which the source animation plays.

`trimEnd`

The optional time, in seconds, at which the source animation stops.

`trimDuration`

An optional duration that overrides the calculated duration.

`offset`

The time, in seconds, at which the animation begins within the duration.

`delay`

An amount of time that lapses before the animation plays.

`speed`

A factor that increases or decreases the animation’s rate of playback.

---

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)