Files
Magical-Jumping-Bean/Library/metadata/ab/ab2114bdc8544297b417dfefe9f1e410
T

139 lines
8.8 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
# 2019.2.3f1þÿÿÿÿÿ’3$øÌuñ옲e+ Í=^7€ÿÿÿÿ€¦€²€Ѐ¦€¦€¦€#¦€+H€3ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€ Q€j€
H€<ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€Õ€Iÿÿÿÿ€1€1€ÿÿÿÿÀÞ€€H€j€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ÿÿfš†!ë5˜9Ý4QÁóBí7€ÿÿÿÿ€¦€²€
E€ Þ€#€.€,€5a€ Þ€#€.€,€†€r€ Þ€# €.€,
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€ñ€JÿÿÿÿÀ1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€\›€ÿÿÿÿ€H€rÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€wÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€#!€.€,"€€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ€€%.€j€&Õ€“ÿÿÿÿ'€1€1€ÿÿÿÿ(ÀÞ€€)€j€ÿÿÿÿ*€H€›€ÿÿÿÿ+€1€1€ÿÿÿÿ,@Þ€€-Q€j€.y€
€ /Þ€#0€.€,1€ €§2@¾€¶ 3@Þ€#4€.€,5€H€»ÿÿÿÿ6€1€1€ÿÿÿÿ7@Þ€€8Q€j€9H€Æÿÿÿÿ:€1€1€ÿÿÿÿ;@Þ€€<Q€j€=H€Øÿÿÿÿ>€1€1€ÿÿÿÿ?@Þ€€@Q€j€AMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×Ü�Z56 :!@iÁJ*�€7€ÿÿÿÿ€¦€²€E€ Þ€€.€€(a€ Þ€€.€€†€r€ Þ€ €.€
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€H€ê€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€ñ€=ÿÿÿÿ€1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€H€›€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€€.€€y€Q Þ€€.€ €Þ€X!H€iÿÿÿÿ"€1€1€ÿÿÿÿ#@Þ€€$Q€j€%H€uÿÿÿÿ&€1€1€ÿÿÿÿ'@Þ€€(Q€j€)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacehhxày¯à¬Ê‚ŒnëBžYëïÀc}ºAÛŒE$yKqýþžN@Packages/com.unity.textmeshpro/Scripts/Runtime/TMP_StyleSheet.csày¯
StyleSheet@ó­TMP_StyleSheet‡using UnityEngine;
using System;
using System.Collections.Generic;
namespace TMPro
{
[Serializable]
public class TMP_StyleSheet : ScriptableObject
{
private static TMP_StyleSheet s_Instance;
[SerializeField]
private List<TMP_Style> m_StyleList = new List<TMP_Style>(1);
private Dictionary<int, TMP_Style> m_StyleDictionary = new Dictionary<int, TMP_Style>();
/// <summary>
/// Get a singleton instance of the TMP_StyleSheet
/// </summary>
public static TMP_StyleSheet instance
{
get
{
if (s_Instance == null)
{
s_Instance = TMP_Settings.defaultStyleSheet;
if (s_Instance == null)
s_Instance = Resources.Load<TMP_StyleSheet>("Style Sheets/Default Style Sheet");
if (s_Instance == null) return null;
// Load the style dictionary.
s_Instance.LoadStyleDictionaryInternal();
}
return s_Instance;
}
}
/// <summary>
/// Static Function to load the Default Style Sheet.
/// </summary>
/// <returns></returns>
public static TMP_StyleSheet LoadDefaultStyleSheet()
{
return instance;
}
/// <summary>
/// Function to retrieve the Style matching the HashCode.
/// </summary>
/// <param name="hashCode"></param>
/// <returns></returns>
public static TMP_Style GetStyle(int hashCode)
{
return instance.GetStyleInternal(hashCode);
}
/// <summary>
/// Internal method to retrieve the Style matching the Hashcode.
/// </summary>
/// <param name="hashCode"></param>
/// <returns></returns>
private TMP_Style GetStyleInternal(int hashCode)
{
if (m_StyleDictionary.TryGetValue(hashCode, out TMP_Style style))
{
return style;
}
return null;
}
public void UpdateStyleDictionaryKey(int old_key, int new_key)
{
if (m_StyleDictionary.ContainsKey(old_key))
{
TMP_Style style = m_StyleDictionary[old_key];
m_StyleDictionary.Add(new_key, style);
m_StyleDictionary.Remove(old_key);
}
}
/// <summary>
/// Function to update the internal reference to a newly assigned style sheet in the TMP Settings.
/// </summary>
public static void UpdateStyleSheet()
{
// Reset instance
s_Instance = null;
RefreshStyles();
}
/// <summary>
/// Function to refresh the Style Dictionary.
/// </summary>
public static void RefreshStyles()
{
instance.LoadStyleDictionaryInternal();
}
/// <summary>
///
/// </summary>
private void LoadStyleDictionaryInternal()
{
m_StyleDictionary.Clear();
// Read Styles from style list and store them into dictionary for faster access.
for (int i = 0; i < m_StyleList.Count; i++)
{
m_StyleList[i].RefreshStyle();
if (!m_StyleDictionary.ContainsKey(m_StyleList[i].hashCode))
m_StyleDictionary.Add(m_StyleList[i].hashCode, m_StyleList[i]);
}
}