entity:created

Shared

Fired when any entity instance is registered into the engine


Signal

"entity:created"

Arguments

TypeNameDescription
userdataentityThe newly created entity instance

Fires for all entity types — Model, Webview, Font, and any other registered entity.

  • The entity argument is the same userdata object returned by the entity's constructor.
  • Fires immediately after the entity is inserted into the registry.

Example

React to any entity being created
util.event.on("entity:created", function(entity)
    core.engine.print("info", "Entity created:", entity:get_type())
end)

On this page