Parameters
| Name | Description | Default |
|---|---|---|
entity | Entity affected by the component operation. | — |
registry | World that owns the entity. | — |
Function
addSelfToParent(entity: EntityHandle, registry: World): voidCallback invoked during a component lifecycle operation.
The callback receives the affected EntityHandle and owning
World.