entity:created
Shared
Fired when any entity instance is registered into the engine
Signal
"entity:created"Arguments
| Type | Name | Description |
|---|---|---|
userdata | entity | The newly created entity instance |
Fires for all entity types — Model, Webview, Font, and any other registered entity.
- The
entityargument is the same userdata object returned by the entity's constructor. - Fires immediately after the entity is inserted into the registry.
Example
util.event.on("entity:created", function(entity)
core.engine.print("info", "Entity created:", entity:get_type())
end)