bevy_debug_text_overlay/
lib.rs

1#![doc = include_str!("../Readme.md")]
2
3use bevy::prelude::Resource;
4
5#[cfg(feature = "debug")]
6mod block;
7#[cfg(feature = "debug")]
8mod overlay;
9#[cfg(feature = "debug")]
10pub use overlay::{command_channels, CommandChannels, InvocationSiteKey, OverlayPlugin};
11
12#[cfg(not(feature = "debug"))]
13mod mocks;
14#[cfg(not(feature = "debug"))]
15pub use mocks::OverlayPlugin;
16
17/// Control position on screen of the debug overlay.
18#[derive(Resource, Default)]
19pub struct DebugOverlayLocation {
20    pub margin_vertical: f32,
21    pub margin_horizontal: f32,
22}