Contents

Events

Respond to things happening in your RealityKit scene by subscribing to specific event types.

Overview

You can receive notifications to specific RealityKit events — all of which conform to the Event protocol — by subscribing to specific events. The kinds of events you can subscribe to include the following:

  • Two entities colliding

  • An entity receiving a new component

  • Audio playback reaching the end of its content

For example, you can receive a notification:

Topics

Core event types

Scene and entity lifecycle events

Input and interaction events

Physics and motion events

Media events

Network synchronization events

See Also

Scene management and logic