One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

ActionAnimation

struct · iOS 18.0+ · SDK 27.1

struct ActionAnimation<ActionType> where ActionType : EntityAction

Defines an an action animation. The definition is used to generate an action animation based `AnimationResource` that can then be played by calling ``Entity/playAnimation(_:transitionDuration:blendLayerOffset:separateAnimatedValue:startsPaused:clock:handoffType:)`` Action animations can be used to perform operations in lock-step with playback. Actions can be grouped or sequenced with pre-existing animation resources or be stand alone. For example an action that triggers sound can be grouped with a sampled animation to trigger sound effects at the appropriate times during playback. See: ``AnimationResource/group(with:)`` Stand alone action animations can animate target values using RealityKit's animation engine with cross fade, and additive compositing support. (See: ``AnimationStateProtocol``)

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ActionAnimation.init(for:events:name:bindTarget:blendLayer:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)

This declaration needs Swift generic type arguments. (no canonical witness for ActionType)

ActionAnimation.action

This declaration needs Swift generic type arguments. (no canonical witness for ActionType)

All RealityFoundation types →