mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Add Reflect
to OnReplace
(#14620)
# Objective - Fixes #14337 ## Solution - Add a `cfg_attr` that derives `Refect` for this type. ## Testing - I am going to make sure the tests pass on this PR before requesting review, If more testing is necessary let me know some good action steps to take.
This commit is contained in:
parent
0caeaa2ca9
commit
897625c899
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ pub struct OnInsert;
|
|||
/// Trigger emitted when a component is replaced on an entity. See [`crate::component::ComponentHooks::on_replace`]
|
||||
/// for more information.
|
||||
#[derive(Event)]
|
||||
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
|
||||
pub struct OnReplace;
|
||||
|
||||
/// Trigger emitted when a component is removed from an entity. See [`crate::component::ComponentHooks::on_remove`]
|
||||
|
|
Loading…
Reference in a new issue