Passer au contenu principal

Custom components

Create a component

You can create a new custom component quickly by going to Files > New Component File which provides a starter template for registering your custom component.

NewCustomComponent

A properly configured custom component and its attributes will appear in the Component interface (as a “Custom” component) where you can configure the component settings visually. Here’s an example of a custom agentSpawner component.

CustomComponentExample

Register a component

The (+) New Component File function in the Files tab provides boilerplate code for properly registering a component. However, any code file can designate a component with ecs.registerComponent.