2 using System.Collections;
4 #pragma warning disable 0649 // Disabled warnings. 18 {
get {
return m_Name; }
set {
if (value != m_Name) m_Name = value; } }
24 {
get {
return m_HashCode; }
set {
if (value != m_HashCode) m_HashCode = value; } }
30 {
get {
return m_OpeningDefinition; } }
36 {
get {
return m_ClosingDefinition; } }
39 public int[] styleOpeningTagArray
40 {
get {
return m_OpeningTagArray; } }
43 public int[] styleClosingTagArray
44 {
get {
return m_ClosingTagArray; } }
49 private string m_Name;
52 private int m_HashCode;
55 private string m_OpeningDefinition;
58 private string m_ClosingDefinition;
61 private int[] m_OpeningTagArray;
64 private int[] m_ClosingTagArray;
78 m_HashCode = TMP_TextUtilities.GetSimpleHashCode(m_Name);
80 m_OpeningTagArray =
new int[m_OpeningDefinition.Length];
81 for (
int i = 0; i < m_OpeningDefinition.Length; i++)
82 m_OpeningTagArray[i] = m_OpeningDefinition[i];
84 m_ClosingTagArray =
new int[m_ClosingDefinition.Length];
85 for (
int i = 0; i < m_ClosingDefinition.Length; i++)
86 m_ClosingTagArray[i] = m_ClosingDefinition[i];
90 TMPro_EventManager.ON_TEXT_STYLE_PROPERTY_CHANGED(
true);
int hashCode
The hash code corresponding to the name of this style.
string name
The name identifying this style. ex. <style="name">.
string styleClosingDefinition
The closing definition of the style. ex. .
void RefreshStyle()
Function to update the content of the int[] resulting from changes to OpeningDefinition & ClosingDefi...
string styleOpeningDefinition
The initial definition of the style. ex. .