bevy/crates/bevy_ui/src/entity.rs

13 lines
254 B
Rust
Raw Normal View History

2020-04-06 21:20:53 +00:00
use super::Node;
2020-04-06 23:15:59 +00:00
use bevy_derive::EntityArchetype;
2020-05-03 00:56:30 +00:00
use bevy_render::Renderable;
use crate::Rect;
2020-04-06 21:20:53 +00:00
2020-05-03 00:56:30 +00:00
#[derive(EntityArchetype, Default)]
2020-04-06 21:20:53 +00:00
#[module(meta = false)]
pub struct UiEntity {
pub node: Node,
2020-05-03 00:56:30 +00:00
pub rect: Rect,
pub renderable: Renderable,
2020-04-06 21:20:53 +00:00
}