Component that defines a callback for when an Entity is clicked.
- Reflectible
- Not serializable (contains a functor)
- Processed by the OnClickSystem
putils::function<void(), KENGINE_ONCLICK_FUNCTION_SIZE> onClick = nullptr;Callback for when the Entity is clicked.
The maximum size for the callback defaults to 64 and can be adjusted by defining the KENGINE_ONCLICK_FUNCTION_SIZE macro.