Table of Contents

Class FLabel

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FLabel : FFacetElementNode
Inheritance
FLabel
Inherited Members

Constructors

FLabel(string, string)

public FLabel(string fontName, string text)

Parameters

fontName string
text string

FLabel(string, string, FTextParams)

public FLabel(string fontName, string text, FTextParams textParams)

Parameters

fontName string
text string
textParams FTextParams

Fields

_alphaColor

public Color _alphaColor

Field Value

Color

_anchorX

public float _anchorX

Field Value

float

_anchorY

public float _anchorY

Field Value

float

_color

public Color _color

Field Value

Color

_doQuadsNeedUpdate

public bool _doQuadsNeedUpdate

Field Value

bool

_doesLocalPositionNeedUpdate

public bool _doesLocalPositionNeedUpdate

Field Value

bool

_doesTextNeedUpdate

public bool _doesTextNeedUpdate

Field Value

bool

_font

public FFont _font

Field Value

FFont

_fontName

public string _fontName

Field Value

string

_isMeshDirty

public bool _isMeshDirty

Field Value

bool

_letterQuadLines

public FLetterQuadLine[] _letterQuadLines

Field Value

FLetterQuadLine[]

_text

public string _text

Field Value

string

_textParams

public FTextParams _textParams

Field Value

FTextParams

_textRect

public Rect _textRect

Field Value

Rect

defaultAnchorX

public static float defaultAnchorX

Field Value

float

defaultAnchorY

public static float defaultAnchorY

Field Value

float

Properties

FontLineHeight

public float FontLineHeight { get; }

Property Value

float

FontMaxCharWidth

public float FontMaxCharWidth { get; }

Property Value

float

alignment

public FLabelAlignment alignment { get; set; }

Property Value

FLabelAlignment

anchorX

public float anchorX { get; set; }

Property Value

float

anchorY

public float anchorY { get; set; }

Property Value

float

boundsRect

[Obsolete("FLabel's boundsRect is obsolete, use textRect instead")]
public Rect boundsRect { get; }

Property Value

Rect

color

public virtual Color color { get; set; }

Property Value

Color

text

public string text { get; set; }

Property Value

string

textRect

public virtual Rect textRect { get; }

Property Value

Rect

Methods

CreateTextQuads()

public void CreateTextQuads()

GetAnchor()

public Vector2 GetAnchor()

Returns

Vector2

PopulateRenderLayer()

public override void PopulateRenderLayer()

Redraw(bool, bool)

public override void Redraw(bool shouldForceDirty, bool shouldUpdateDepth)

Parameters

shouldForceDirty bool
shouldUpdateDepth bool

SetAnchor(float, float)

public void SetAnchor(float newX, float newY)

Parameters

newX float
newY float

SetAnchor(Vector2)

public void SetAnchor(Vector2 newAnchor)

Parameters

newAnchor Vector2

UpdateLocalPosition()

public void UpdateLocalPosition()