Improve warning wording

This commit is contained in:
1Axen 2025-04-21 01:59:40 +03:00
parent f081a04981
commit 0e10684da7
No known key found for this signature in database

View file

@ -15,7 +15,7 @@ A (component) ID can be marked with `Tag´ in which the component will never con
Hooks are part of the "interface" of a component. You could consider hooks as the counterpart to OOP methods in ECS. They define the behavior of a component, but can only be invoked through mutations on the component data. You can only configure a single `OnAdd`, `OnRemove` and `OnSet` hook per component, just like you can only have a single constructor and destructor. Hooks are part of the "interface" of a component. You could consider hooks as the counterpart to OOP methods in ECS. They define the behavior of a component, but can only be invoked through mutations on the component data. You can only configure a single `OnAdd`, `OnRemove` and `OnSet` hook per component, just like you can only have a single constructor and destructor.
::: warning ::: warning
Hooks must be added to a component before it is used with other entities/components for them to take effect. Hooks, added to a component that has already been added to other entities/components, will not be called.
::: :::
## Examples ## Examples