public static void ShowPackageImporterWindow() { if (m_ImporterWindow == null) { m_ImporterWindow = GetWindow <TMP_PackageResourceImporterWindow>(); m_ImporterWindow.titleContent = new GUIContent("TMP Importer"); m_ImporterWindow.Focus(); } }
internal static TMP_Settings GetTextSettings() { if (s_TextSettings == null) { // Try loading the TMP Settings from a Resources folder in the user project. s_TextSettings = Resources.Load <TMP_Settings>("TextSettings"); // ?? ScriptableObject.CreateInstance<TMP_Settings>(); #if UNITY_EDITOR if (s_TextSettings == null) { // Open TMP Resources Importer to enable the user to import the TMP Essential Resources and option TMP Examples & Extras TMP_PackageResourceImporterWindow.ShowPackageImporterWindow(); } #endif } return(s_TextSettings); }