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

# ComponentEvents

Provides the events related to components.

```
enum ComponentEvents
```

## Overview

For more information on subscribing to scene events, see `RealityKit/Scene/Event`.

## Topics

### Detecting component changes

[`DidAdd`](/documentation/RealityKit/ComponentEvents/DidAdd)

Event raised after a component has been added to an entity,

[`DidChange`](/documentation/RealityKit/ComponentEvents/DidChange)

Event raised after a component has been modified.

[`WillRemove`](/documentation/RealityKit/ComponentEvents/WillRemove)

Event raised before a component is removed from an entity.

### Detecting component activations

[`DidActivate`](/documentation/RealityKit/ComponentEvents/DidActivate)

Event raised after a component has been activated.

[`WillDeactivate`](/documentation/RealityKit/ComponentEvents/WillDeactivate)

Event raised before a component is deactivated.



---

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)