A protocol that defines an action for an entity.
Structures that conform to `EntityAction` can contain data that an ``ActionAnimation`` stores.
If your apps needs to serialize the animation resource to a file,
the structure also needs to adopt and conform to the
<doc://com.apple.documentation/documentation/swift/codable> protocol.
As action animation playback occurs, unique action events are raised for its associated `EntityAction`
conforming type.
These events allow application code to animate target values (see ``AnimationStateProtocol``), and perform
custom operations in lock step with animation playback.
The action data stored within an action animation is available to the action's event handler.
- Note: Custom actions don't support animating ``BlendShapeWeights``.
Members (2)
get · iOS 18.0+
isAdditive
Swift declaration
var isAdditive: Bool { get }
A Boolean value that determines whether this action
additively blends with the prior stage.
When `true`, the action's animation output is relative to an absolute base value,
and the animation system blends the result additively with the prior blend stage.
Apply actions additively by configuring them to produce
animation offsets, such as delta values.
The default value is `false`.
get · iOS 18.0+
isReversible
Swift declaration
var isReversible: Bool { get }
A Boolean value that determines whether the action reverses
prior operations when playback is reverses.
The default value is `true`.
Skipped declarations
6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
EntityAction.registerAction()
Static protocol requirements cannot be called through an instance.
EntityAction.subscribe(to:_:)
This protocol needs associated types that cannot yet cross the bridge.
EntityAction.unsubscribe(from:)
Static protocol requirements cannot be called through an instance.
EntityAction.unsubscribeAll()
Static protocol requirements cannot be called through an instance.
EntityAction.registerAction()
Static protocol requirements cannot be called through an instance.
EntityAction.subscribe(to:_:)
This protocol needs associated types that cannot yet cross the bridge.