// Event received when TMP resources have been loaded. static void ON_RESOURCES_LOADED() { TMPro_EventManager.RESOURCE_LOAD_EVENT.Remove(ON_RESOURCES_LOADED); TMP_Settings textSettings = TMP_Settings.instance; Selection.activeObject = textSettings; // TODO: Do we want to ping the Project Text Settings asset in the Project Inspector EditorUtility.FocusProjectWindow(); EditorGUIUtility.PingObject(textSettings); }
/// <summary> /// Static Function to load the TMP Settings file. /// </summary> /// <returns></returns> public static TMP_Settings LoadDefaultSettings() { if (s_Instance == null) { // Load settings from TMP_Settings file TMP_Settings settings = Resources.Load <TMP_Settings>("TMP Settings"); if (settings != null) { s_Instance = settings; } } return(s_Instance); }