Class HUDLocalizedText
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
[RequireComponent(typeof(TMP_Text))]
[DisallowMultipleComponent]
public class HUDLocalizedText : HUDComponent
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourHUDLocalizedText
- Inherited Members
- Extension Methods
Constructors
HUDLocalizedText()
public HUDLocalizedText()
Properties
Alignment
public TextAlignmentOptions Alignment { set; }
Property Value
- TextAlignmentOptions
Color
public Color Color { get; set; }
Property Value
- Color
FontSize
public float FontSize { set; }
Property Value
- float
IsRotatedVertical
public bool IsRotatedVertical { set; }
Property Value
- bool
Text
public IText Text { set; }
Property Value
TextStyleProvider
public ITextStyleProvider TextStyleProvider { set; }
Property Value
Methods
AddLinkClickHandler(Action<string>, Camera)
public void AddLinkClickHandler(Action<string> handler, Camera targetCamera)
Parameters
handlerAction<string>targetCameraCamera
GetPreferredValues(float, float)
public Vector2 GetPreferredValues(float w, float h)
Parameters
wfloathfloat
Returns
- Vector2
OnDispose()
protected override void OnDispose()