Learn / Documentation / Script Reference / ColorTargetTextMeshPro
Manual

ColorTargetTextMeshPro

class in Doozy.Engine.Themes / Inherits from ThemeTarget

Description

The Color Target TextMeshPro is used by the ThemeManager to update the color value of a TextMeshPro component

Public Variables

  • public TMP_Text TextMeshPro – Target TextMeshPro component

  • public bool OverrideAlpha – Determines if the target color preserves its alpha value when the theme variant changes

  • public float Alpha – Alpha value for the target color when the theme variant changes (when OverrideAlpha is true)

Public Methods

  • public override void UpdateTarget(ThemeData theme) – Method used by the ThemeManager when the active variant or selected theme have changed

  • public void SetAlpha(float value) – Sets the Alpha value for the target component