Learn / Documentation / Script Reference / ProgressTargetTextMeshPro
Manual

ProgressTargetTextMeshPro

class in Doozy.Engine.Progress / Inherits from ProgressTarget

Description

The ProgressTargetTextMeshPro class is used by a Progressor to update the text value of a TextMeshPro component

Public Variables

  •  public TextMeshPro TextMeshPro – Target TextMeshPro component

  •  public TargetVariable TargetVariable – The variable that will get converted to string and set as the text value of the TextMeshPro target

  •  public bool WholeNumbers – Should the target variable value get rounded to the nearest integer?

  •  public bool UseMultiplier – Should the target variable value have a multiplier applied?

  •  public float Multiplier – If UseMultiplier is TRUE, the target variable value will be multiplied by this value. Useful if you want to convert the Progress from 0.5 to 50% for example

  •  public string Prefix – Text added before the converted string value

  •  public string Suffix – Text added after the converted string value

Public Methods

  • public override void UpdateTarget(Progressor progressor) – Method used by a Progressor to when the current Value has changed