<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ActionEventType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15ActionEventTypeV"
  },
  "title" : "ActionEventType"
}
-->

# ActionEventType

A set of events that an action responds to.

```
struct ActionEventType
```

## Overview

Actions can respond to specific events with one or more custom event handlers that
you associate with each event type.

RealityKit calls the event handlers when the animation time enters,
exits, or continues within a time interval for an
[`ActionEventDefinition`](/documentation/RealityKit/ActionEventDefinition).

A time interval for an event begins at its starting time and spans up to,
but doesn’t include, the event’s starting time plus its duration.

## Topics

### Event types

[`static var started: ActionEventType`](/documentation/RealityKit/ActionEventType/started)

An event that takes place when a new action event begins.

[`static var ended: ActionEventType`](/documentation/RealityKit/ActionEventType/ended)

An event that takes place when the action event exits its time interval.

[`static var paused: ActionEventType`](/documentation/RealityKit/ActionEventType/paused)

An event that takes place when the animation pauses.

[`static var resumed: ActionEventType`](/documentation/RealityKit/ActionEventType/resumed)

An event that takes place when the animation resumes after a pause.

[`static var updated: ActionEventType`](/documentation/RealityKit/ActionEventType/updated)

An event that takes place after an action event starts and is within its time interval.

[`static var skipped: ActionEventType`](/documentation/RealityKit/ActionEventType/skipped)

An event that takes place when the system misses an action event’s time interval.

[`static var terminated: ActionEventType`](/documentation/RealityKit/ActionEventType/terminated)

An event that takes place when the animation ends.

### Protocol support

[`init(rawValue: UInt)`](/documentation/RealityKit/ActionEventType/init(rawValue:))

Creates an action event type from a raw value.

[`let rawValue: UInt`](/documentation/RealityKit/ActionEventType/rawValue)

The backing storage for action event types.

## Relationships

### Conforms To

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)