Table of Contents

Class EntityDebugSceneRenderer

Namespace
Stride.CommunityToolkit.Renderers
Assembly
Stride.CommunityToolkit.dll

Scene renderer that draws per-entity debug information - the entity's name and/or position - as screen-space text over the 3D scene.

public class EntityDebugSceneRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
EntityDebugSceneRenderer
Implements
Inherited Members

Remarks

Appearance is controlled through EntityDebugSceneRendererOptions. Unlike EntityTextRenderer, which draws text that entities opt into by carrying an EntityTextComponent, this labels entities automatically and styles them all the same way - it is a debugging overlay to switch on, not authored content.

The two share their drawing through Stride.CommunityToolkit.Renderers.ScreenTextDrawer, so anchoring, backgrounds, shadows and projection behave identically in both.

Constructors

EntityDebugSceneRenderer()

Initializes a new instance of the EntityDebugSceneRenderer class with default rendering options.

public EntityDebugSceneRenderer()

EntityDebugSceneRenderer(EntityDebugSceneRendererOptions?)

Initializes a new instance of the EntityDebugSceneRenderer class with the specified rendering options.

public EntityDebugSceneRenderer(EntityDebugSceneRendererOptions? options = null)

Parameters

options EntityDebugSceneRendererOptions

Options to customize debug text appearance. If null, defaults are used.

Methods

Destroy()

protected override void Destroy()

DrawCore(RenderContext, RenderDrawContext)

protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)

Parameters

context RenderContext
drawContext RenderDrawContext

InitializeCore()

protected override void InitializeCore()