---
title: "blend(_:_:name:isAdditive:)"
framework: realitykit
role: symbol
role_heading: Function
path: "realitykit/blend(_:_:name:isadditive:)"
---

# blend(_:_:name:isAdditive:)

Combines the animations that result from two blend-tree nodes into a single blend-tree node.

## Declaration

```swift
func blend(_ x: any BlendTreeNode, _ y: any BlendTreeNode, name: String = "", isAdditive: Bool = false) -> any BlendTreeNode
```

## Parameters

- `x`: A blend-tree node whose animation combines with the second animation argument.
- `y`: A blend-tree node whose animation combines with the first animation argument.
- `name`: A unique name for the combined node.
- `isAdditive`: A Boolean value that indicates whether the animation builds on the current state of the target entity, or resets the state before running.

## Return Value

Return Value A blend-tree node that combines the given animations.

## See Also

### Blending animations

- [blend(sources:name:isAdditive:)](realitykit/blend(sources:name:isadditive:).md)
