Class TextRenderer
Inherited Members
Namespace: Unity.Tiny.Text.Authoring
Syntax
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshFilter))]
[DisallowMultipleComponent]
[ExecuteInEditMode]
[AddComponentMenu("Text Renderer (Tiny)")]
public class TextRenderer : MonoBehaviour
Fields
Alignment
Declaration
public HorizontalAlignment Alignment
Field Value
Type | Description |
---|---|
HorizontalAlignment |
Color
Declaration
public Color Color
Field Value
Type | Description |
---|---|
Color |
Font
Declaration
public TMP_FontAsset Font
Field Value
Type | Description |
---|---|
TMP_FontAsset |
Size
Declaration
public float Size
Field Value
Type | Description |
---|---|
Single |
Text
Declaration
[TextArea(5, 10)]
public string Text
Field Value
Type | Description |
---|---|
String |