<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Component/registerComponent()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation9ComponentPAAE08registerC0yyFZ"
  },
  "title" : "registerComponent()"
}
-->

# registerComponent()

Registers a new component type.

```
static func registerComponent()
```

## Discussion

Call the `registerComponent()` method once for every custom component
type that you use in your app before you use it. You don’t need to call
the method for built-in component types, like [`ModelComponent`](/documentation/RealityKit/ModelComponent)
or [`AnchoringComponent`](/documentation/RealityKit/AnchoringComponent).

---

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)