Class TextRendererScopeExtensions
Helpers for rendering text directly through an encoder scope.
public static class TextRendererScopeExtensions
- Inheritance
-
TextRendererScopeExtensions
- Inherited Members
Methods
DrawText(IRenderEncoderScope, ITextRenderer, IFont, string, Vector2, Color, float, Vector2, Vector2, float)
Draws text, set in font, through scope. Nothing is drawn when the font is null or the text is empty.
public static void DrawText(this IRenderEncoderScope scope, ITextRenderer textRenderer, IFont font, string text, Vector2 position, Color color, float rotation = 0, Vector2 origin = default, Vector2 scale = default, float letterSpacing = 0)
Parameters
scopeIRenderEncoderScopetextRendererITextRendererfontIFonttextstringpositionVector2colorColorrotationfloatoriginVector2scaleVector2letterSpacingfloat