mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Implement Debug for SpriteBundle and SpriteSheetBundle (#10506)
# Objective Implement Debug trait for SpriteBundle and SpriteSheetBundle It's helpful and other basic bundles like TransformBundle and VisibilityBundle already implement this trait
This commit is contained in:
parent
e34fb68677
commit
eb7f554ef7
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ use bevy_transform::components::{GlobalTransform, Transform};
|
|||
/// You may add the following components to enable additional behaviours
|
||||
/// - [`ImageScaleMode`](crate::ImageScaleMode) to enable either slicing or tiling of the texture
|
||||
/// - [`TextureAtlas`] to draw specific sections of a sprite sheet, (See [`SpriteSheetBundle`])
|
||||
#[derive(Bundle, Clone, Default)]
|
||||
#[derive(Bundle, Clone, Debug, Default)]
|
||||
pub struct SpriteBundle {
|
||||
/// Specifies the rendering properties of the sprite, such as color tint and flip.
|
||||
pub sprite: Sprite,
|
||||
|
@ -41,7 +41,7 @@ pub struct SpriteBundle {
|
|||
/// Check the following examples for usage:
|
||||
/// - [`animated sprite sheet example`](https://github.com/bevyengine/bevy/blob/latest/examples/2d/sprite_sheet.rs)
|
||||
/// - [`texture atlas example`](https://github.com/bevyengine/bevy/blob/latest/examples/2d/texture_atlas.rs)
|
||||
#[derive(Bundle, Clone, Default)]
|
||||
#[derive(Bundle, Clone, Debug, Default)]
|
||||
pub struct SpriteSheetBundle {
|
||||
/// Specifies the rendering properties of the sprite, such as color tint and flip.
|
||||
pub sprite: Sprite,
|
||||
|
|
Loading…
Reference in a new issue