mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Initial commit
This commit is contained in:
commit
3c7cc0c973
8391 changed files with 704313 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
#if !UNITY_2018_3_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace TMPro
|
||||
{
|
||||
|
||||
public static class TMP_ProjectTextSettings
|
||||
{
|
||||
// Open Project Text Settings
|
||||
[MenuItem("Edit/Project Settings/TextMeshPro Settings", false, 309)]
|
||||
public static void SelectProjectTextSettings()
|
||||
{
|
||||
TMP_Settings textSettings = TMP_Settings.instance;
|
||||
|
||||
if (textSettings)
|
||||
{
|
||||
Selection.activeObject = textSettings;
|
||||
|
||||
// TODO: Do we want to ping the Project Text Settings asset in the Project Inspector
|
||||
EditorUtility.FocusProjectWindow();
|
||||
EditorGUIUtility.PingObject(textSettings);
|
||||
}
|
||||
else
|
||||
TMPro_EventManager.RESOURCE_LOAD_EVENT.Add(ON_RESOURCES_LOADED);
|
||||
}
|
||||
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue