mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Reflect derived traits on all components and resources: bevy_gizmos (#15217)
Solves https://github.com/bevyengine/bevy/issues/15187 for bevy_gizmos
This commit is contained in:
parent
2ea8d35900
commit
379696a468
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ pub struct AabbGizmoConfigGroup {
|
|||
|
||||
/// Add this [`Component`] to an entity to draw its [`Aabb`] component.
|
||||
#[derive(Component, Reflect, Default, Debug)]
|
||||
#[reflect(Component, Default)]
|
||||
#[reflect(Component, Default, Debug)]
|
||||
pub struct ShowAabbGizmo {
|
||||
/// The color of the box.
|
||||
///
|
||||
|
|
|
@ -200,7 +200,7 @@ impl Default for LightGizmoConfigGroup {
|
|||
/// Add this [`Component`] to an entity to draw any of its lights components
|
||||
/// ([`PointLight`], [`SpotLight`] and [`DirectionalLight`]).
|
||||
#[derive(Component, Reflect, Default, Debug)]
|
||||
#[reflect(Component, Default)]
|
||||
#[reflect(Component, Default, Debug)]
|
||||
pub struct ShowLightGizmo {
|
||||
/// Default color strategy for this light gizmo. if [`None`], use the one provided by [`LightGizmoConfigGroup`].
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue