bevy/crates/bevy_ecs/macros
Jenya705 330911f1bf
Component Hook functions as attributes for Component derive macro (#14005)
# Objective

Fixes https://github.com/bevyengine/bevy/issues/13972

## Solution

Added 3 new attributes to the `Component` macro.

## Testing

Added `component_hook_order_spawn_despawn_with_macro_hooks`, that makes
the same as `component_hook_order_spawn_despawn` but uses a struct, that
defines it's hooks with the `Component` macro.

---

---------

Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
2024-07-08 00:46:00 +00:00
..
src Component Hook functions as attributes for Component derive macro (#14005) 2024-07-08 00:46:00 +00:00
Cargo.toml Computed State & Sub States (#11426) 2024-05-02 19:36:23 +00:00