One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

BlendTreeInvalidNode

struct · iOS 15.0+ · SDK 27.1

struct BlendTreeInvalidNode

A blend tree node that's internal only or sources from an invalid definition. This structure adopts ``BlendTreeNode`` and adds the ability to detect a node that contains neither an animation nor any branches in the blend tree. You don't create instances of this structure. Instead, detect whether your blend-tree node matches the framework's criteria for invalid nodes by checking the node type, as the following code demonstrates. ```swift // Get the blend tree's root node. guard let blendNode = blendTree.root as? BlendTreeBlendNode else { return } for node in blendNode.sources { if let invalidNode = node as? BlendTreeInvalidNode { // Respond to invalid-node criteria. ```

Members (4)

get · iOS 15.0+

name

TypeScript
get name(): string
Swift declaration
var name: String

A textual name for the blend node.

set · iOS 15.0+

name

TypeScript
set name(value: string)
Swift declaration
var name: String

A textual name for the blend node.

get · iOS 15.0+

weight

TypeScript
get weight(): BlendWeight
Swift declaration
var weight: BlendWeight

The amount that an animation impacts the entity it applies to.

set · iOS 15.0+

weight

TypeScript
set weight(value: BlendWeight)
Swift declaration
var weight: BlendWeight

The amount that an animation impacts the entity it applies to.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →