Loading...
Searching...
No Matches
PixelCrushers.SetLocalizedFont Class Reference

Sets a Text or TextMeshProUGUI component's font according to the current language and the settings in a LocalizedFonts asset. More...

Inheritance diagram for PixelCrushers.SetLocalizedFont:
Collaboration diagram for PixelCrushers.SetLocalizedFont:

Public Member Functions

virtual void SetCurrentLocalizedFont ()
 

Protected Member Functions

virtual void Awake ()
 
virtual void Start ()
 
virtual void OnDestroy ()
 
virtual void OnEnable ()
 
virtual void OnLanguageChanged (string language)
 

Protected Attributes

bool m_setOnEnable = true
 
LocalizedFonts m_localizedFonts = null
 
bool m_started = false
 
float m_initialFontSize = -1
 
UnityEngine.UI.Text text
 

Detailed Description

Sets a Text or TextMeshProUGUI component's font according to the current language and the settings in a LocalizedFonts asset.

Member Function Documentation

◆ Awake()

virtual void PixelCrushers.SetLocalizedFont.Awake ( )
inlineprotectedvirtual

◆ OnDestroy()

virtual void PixelCrushers.SetLocalizedFont.OnDestroy ( )
inlineprotectedvirtual

◆ OnEnable()

virtual void PixelCrushers.SetLocalizedFont.OnEnable ( )
inlineprotectedvirtual

◆ OnLanguageChanged()

virtual void PixelCrushers.SetLocalizedFont.OnLanguageChanged ( string  language)
inlineprotectedvirtual

◆ SetCurrentLocalizedFont()

virtual void PixelCrushers.SetLocalizedFont.SetCurrentLocalizedFont ( )
inlinevirtual

◆ Start()

virtual void PixelCrushers.SetLocalizedFont.Start ( )
inlineprotectedvirtual

Member Data Documentation

◆ m_initialFontSize

float PixelCrushers.SetLocalizedFont.m_initialFontSize = -1
protected

◆ m_localizedFonts

LocalizedFonts PixelCrushers.SetLocalizedFont.m_localizedFonts = null
protected

◆ m_setOnEnable

bool PixelCrushers.SetLocalizedFont.m_setOnEnable = true
protected

◆ m_started

bool PixelCrushers.SetLocalizedFont.m_started = false
protected

◆ text

UnityEngine.UI.Text PixelCrushers.SetLocalizedFont.text
protected

The documentation for this class was generated from the following file: