/// <summary> /// /// </summary> /// <param name="packageName"></param> void ImportCallback(string packageName) { if (packageName == "TMP Essential Resources") { k_EssentialResourcesImported = true; TMPro_EventManager.ON_RESOURCES_LOADED(); } else if (packageName == "TMP Examples & Extras") { k_ExamplesAndExtrasResourcesImported = true; k_IsImportingExamples = false; } Debug.Log("[" + packageName + "] have been imported."); AssetDatabase.importPackageCompleted -= ImportCallback; }
/// <summary> /// /// </summary> /// <param name="packageName"></param> void ImportCallback(string packageName) { if (packageName == "TMP Essential Resources") { m_EssentialResourcesImported = true; TMPro_EventManager.ON_RESOURCES_LOADED(); #if UNITY_2018_3_OR_NEWER SettingsService.NotifySettingsProviderChanged(); #endif } else if (packageName == "TMP Examples & Extras") { m_ExamplesAndExtrasResourcesImported = true; m_IsImportingExamples = false; } Debug.Log("[" + packageName + "] have been imported."); AssetDatabase.importPackageCompleted -= ImportCallback; }