Exemple #1
0
 static public void AddUSESTM()
 {
     if (EditorUtility.DisplayDialog("Enable Super Text Mesh Support", "This will enable Super Text Mesh support. Your project must already contain Super Text Mesh.\n\n*IMPORTANT*: Before pressing OK, you MUST move the Clavian folder into the Plugins folder!\n\nTo continue, press OK. If you need to install Super Text Mesh or move the folder first, press Cancel.", "OK", "Cancel"))
     {
         MoreEditorUtility.TryAddScriptingDefineSymbols("USE_STM");
         EditorUtility.DisplayDialog("Super Text Mesh Support Enabled", "Super Text Mesh support has been enabled.", "OK");
     }
 }
Exemple #2
0
 static public void AddTMPPRESENT()
 {
     if (EditorUtility.DisplayDialog("Enable TextMesh Pro Support", "This will enable the Dialogue System's TextMesh Pro support for the current build platform. Your project must already contain the TextMesh Pro package. To continue, press OK. If you need to install TextMesh Pro first, press Cancel.", "OK", "Cancel"))
     {
         MoreEditorUtility.TryAddScriptingDefineSymbols("TMP_PRESENT");
         EditorUtility.DisplayDialog("TextMesh Pro Support Enabled", "TextMesh Pro support has been enabled for the current build platform. You may need to right-click on the two files named TextMeshProTypewriterEffect and select Reimport to be able to add them to your GameObjects. If you change build platforms, you may need to select this menu item again.", "OK");
     }
 }
 public static void TryAddScriptingDefineSymbols(string newDefine)
 {
     MoreEditorUtility.TryAddScriptingDefineSymbols(newDefine);
 }