mirror of
https://github.com/bevyengine/bevy.git
synced 2026-06-30 15:55:32 -04:00
ae2fcc0353
# Objective Enables the resource derive macro to specify the attributes for - hooks (fixes #24159) - immutability (fixes #24166) Also fixes `resource_scope` overwriting change ticks and a few related doc comments. ## Showcase ```rust #[derive(Resource)] #[component(immutable)] #[component(on_insert = update_level, on_discard = update_level)] struct Level(i32); ```