-
Notifications
You must be signed in to change notification settings - Fork 12
5. Creating a New Object
As mentioned in the c_object
chapter, any object that needs to be managed by the framework must inherit from c_object
.
After creating a new object, the first step is to set it up to inherit from c_object
:
Once inherited, the object will automatically include four events from c_object
. In most cases, the only event you'll need to adjust is the Create Event, where you'll initialise the object. To do this:
- Right-click on the Create Event.
- Select Inherit Event.
Now the object is ready! After calling event_inherited()
, you can add your own initialisation logic.
Important: as explained in the culling section, by default, the object’s culling type is set to CULLING.ACTIVE
. This may impact performance if many instances of this object are present in the room, so remember to adjust the culling type according to your needs!