Struct TextDebugDrawer
Debug text element
Implements
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public struct TextDebugDrawer : IDebugDrawer
Remarks
Inspired by LotteMakesStuff's segment font: https://gist.github.com/LotteMakesStuff/ceb66cb29cb7d3c07da1207ab5d12045 and https://www.keshikan.net/img/dseg_sample.png
Constructors
| Improve this Doc View SourceTextDebugDrawer(String, Color, Single, AnchorPosition)
Constructor
Declaration
public TextDebugDrawer(string text, Color color, float fontSize, AnchorPosition anchor = AnchorPosition.TopLeft)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to display |
UnityEngine.Color | color | Color of the text |
System.Single | fontSize | Size of the text's characters |
AnchorPosition | anchor | Position of the text's anchor |
Properties
| Improve this Doc View SourceColor
The color of the text
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
IsFinished
Whether or not the text has finished drawing
Declaration
public bool IsFinished { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDraw()
Draws the text
Declaration
public void Draw()