To demonstrate the registration process, we will create a simple actor that will display a rotating model, and register it to the game.
First, define the class for the actor, inheriting from Actor
To learn more about the actor lifecycle, see Actor.
Next, register the actor to the game using the getRegistrar() function we created earlier:
The builder has additional methods for setting different properties of the profile, see red::ProfileBuilder for more information.
Finally, create the actor's constructor and implement the lifecycle functions:
Finally, to test the actor, you must inform the level editor that it exists so that it can be placed in a level. See here for an example.