pub struct VisualDebugOverlay { /* private fields */ }Expand description
Visual debug overlay manager
Implementations§
Source§impl VisualDebugOverlay
 
impl VisualDebugOverlay
Sourcepub fn with_config(
    brp_client: Arc<RwLock<BrpClient>>,
    config: OverlayConfig,
) -> Self
 
pub fn with_config( brp_client: Arc<RwLock<BrpClient>>, config: OverlayConfig, ) -> Self
Create with custom configuration
Sourcepub async fn set_overlay_enabled(
    &self,
    overlay_type: &DebugOverlayType,
    enabled: bool,
    config: Option<Value>,
) -> Result<()>
 
pub async fn set_overlay_enabled( &self, overlay_type: &DebugOverlayType, enabled: bool, config: Option<Value>, ) -> Result<()>
Enable or disable an overlay type
Sourcepub async fn highlight_entities(
    &self,
    entity_ids: Vec<u64>,
    color: Option<[f32; 4]>,
    mode: Option<HighlightMode>,
) -> Result<()>
 
pub async fn highlight_entities( &self, entity_ids: Vec<u64>, color: Option<[f32; 4]>, mode: Option<HighlightMode>, ) -> Result<()>
Highlight specific entities
Sourcepub async fn clear_highlights(&self) -> Result<()>
 
pub async fn clear_highlights(&self) -> Result<()>
Clear entity highlighting
Sourcepub async fn show_colliders(
    &self,
    config: Option<ColliderVisualizationConfig>,
) -> Result<()>
 
pub async fn show_colliders( &self, config: Option<ColliderVisualizationConfig>, ) -> Result<()>
Enable collider visualization
Sourcepub async fn show_transform_gizmos(
    &self,
    config: Option<TransformGizmoConfig>,
) -> Result<()>
 
pub async fn show_transform_gizmos( &self, config: Option<TransformGizmoConfig>, ) -> Result<()>
Enable transform gizmos
Sourcepub async fn show_metrics(
    &self,
    config: Option<MetricsOverlayConfig>,
) -> Result<()>
 
pub async fn show_metrics( &self, config: Option<MetricsOverlayConfig>, ) -> Result<()>
Show performance metrics overlay
Sourcepub async fn add_debug_marker(&self, marker: DebugMarker) -> Result<()>
 
pub async fn add_debug_marker(&self, marker: DebugMarker) -> Result<()>
Add a custom debug marker
Sourcepub async fn remove_debug_marker(&self, marker_id: &str) -> Result<()>
 
pub async fn remove_debug_marker(&self, marker_id: &str) -> Result<()>
Remove a debug marker
Sourcepub async fn clear_all_overlays(&self) -> Result<()>
 
pub async fn clear_all_overlays(&self) -> Result<()>
Clear all overlays
Sourcepub async fn update_performance_metrics(
    &self,
    overlay_type: &DebugOverlayType,
    frame_time_ms: f32,
)
 
pub async fn update_performance_metrics( &self, overlay_type: &DebugOverlayType, frame_time_ms: f32, )
Update performance metrics for an overlay
Sourcepub async fn get_performance_metrics(&self) -> HashMap<DebugOverlayType, f32>
 
pub async fn get_performance_metrics(&self) -> HashMap<DebugOverlayType, f32>
Get current performance metrics
Sourcepub async fn is_budget_exceeded(&self) -> bool
 
pub async fn is_budget_exceeded(&self) -> bool
Check if performance budget is exceeded
Sourcepub fn get_config(&self) -> &OverlayConfig
 
pub fn get_config(&self) -> &OverlayConfig
Get overlay configuration
Sourcepub fn set_config(&mut self, config: OverlayConfig)
 
pub fn set_config(&mut self, config: OverlayConfig)
Update overlay configuration
Auto Trait Implementations§
impl Freeze for VisualDebugOverlay
impl !RefUnwindSafe for VisualDebugOverlay
impl Send for VisualDebugOverlay
impl Sync for VisualDebugOverlay
impl Unpin for VisualDebugOverlay
impl !UnwindSafe for VisualDebugOverlay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more