Table of Contents

Class EntityInfoRenderer

Namespace
Stride.CommunityToolkit.Rendering.Overlay
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 EntityInfoRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
EntityInfoRenderer
Implements
Inherited Members

Remarks

Appearance is controlled through EntityInfoRendererOptions. 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.Rendering.Text.ScreenTextDrawer, so anchoring, backgrounds, shadows and projection behave identically in both.

Constructors

EntityInfoRenderer()

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

public EntityInfoRenderer()

EntityInfoRenderer(EntityInfoRendererOptions?)

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

public EntityInfoRenderer(EntityInfoRendererOptions? options = null)

Parameters

options EntityInfoRendererOptions

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

Fields

ProfilingKey

The block the profiler shows this renderer's GPU time under.

public static readonly ProfilingKey ProfilingKey

Field Value

ProfilingKey

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()