Contents

BindPath

The components of a target’s path that refer to the animation properties of a nested scene or entity.

Declaration

struct BindPath

Overview

The following code demonstrates bind target paths with varying numbers of elements. For a multicomponent target, call the BindPath.Part enumeration for each component. The individual elements form the path’s resulting parts array.

// Single-component paths:
let target0: BindTarget = .transform
let target1: BindTarget = .jointTransforms
let target2: BindTarget = .parameter("myInt")

// Relative entity path:
let target3: BindTarget = .entity("entityA").entity("entityB").parameter("myInt")

// Root entity path:
let target4: BindTarget = .anchorEntity("entityA").entity("entityB").transform

// Scene path:
let target5: BindTarget = .scene("sceneA").anchorEntity("entityA").entity("entityB").jointTransforms

Topics

Composing a property identifier

See Also

Bindable animation targets