---
title: registerAction()
framework: realitykit
role: symbol
role_heading: Type Method
path: realitykit/entityaction/registeraction()
---

# registerAction()

Registers the action into the action-types registry.

## Declaration

```swift
static func registerAction()
```

## Discussion

Discussion Registering an action allows RealityKit to retrieve its AnimationResource definitions. Registering an action may not be necessary, because RealityKit automatically registers the action when you: Initialize an ActionAnimation with this action. Subscribe to it in any way, including subscribing an ActionHandlerProtocol.
