Class EntityTextRenderer
- Namespace
- Stride.CommunityToolkit.Renderers
- Assembly
- Stride.CommunityToolkit.dll
Draws the text of every EntityTextComponent in the scene, as a screen-space overlay over the rendered 3D scene.
public class EntityTextRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
EntityTextRenderer
- Implements
- Inherited Members
Remarks
Add one of these to the graphics compositor - game.AddSceneRenderer(new EntityTextRenderer()) -
and any entity carrying an EntityTextComponent is drawn, wherever it sits in the
entity hierarchy.
Text is drawn with SpriteBatch and no depth testing, so it always appears on top of the scene rather than being occluded by geometry in front of it.
Methods
Destroy()
protected override void Destroy()
DrawCore(RenderContext, RenderDrawContext)
protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)
Parameters
contextRenderContextdrawContextRenderDrawContext
InitializeCore()
protected override void InitializeCore()