EntityAction
A protocol that defines an action for an entity.
Declaration
protocol EntityActionOverview
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 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.