コード例 #1
0
 static public void AddUSEPHYSICS2D()
 {
     if (EditorUtility.DisplayDialog("Enable Physics2D Support", "If your project uses 2D Physics, press OK to enable Pixel Crushers support for 2D Physics.", "OK", "Cancel"))
     {
         MoreEditorUtility.TryAddScriptingDefineSymbols("USE_PHYSICS2D");
         EditorUtility.DisplayDialog("Physics2D Support Enabled", "Support for 2D Physics has been enabled. You may need to right-click on the Plugins/Pixel Crushers folder and select Reimport to recompile the scripts with 2D Physics support.", "OK");
     }
 }
コード例 #2
0
 static public void AddUSENEWINPUT()
 {
     if (EditorUtility.DisplayDialog("Use New Input System", "This will switch the Input Device Manager to read from Unity's new Input System. You must have already added the Input System package.\n\n*IMPORTANT*: Support for the new Input System has not been implemented yet! This option currently only suppresses error messages by preventing the Input Device Manager from accessing Unity's default Input class.", "OK", "Cancel"))
     {
         MoreEditorUtility.TryAddScriptingDefineSymbols("USE_NEW_INPUT");
         EditorUtility.DisplayDialog("Using New Input System", "*IMPORTANT*: Support for the new Input System has not been implemented yet! This option currently only suppresses error messages by preventing the Input Device Manager from accessing Unity's default Input class.", "OK");
     }
 }
コード例 #3
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");
     }
 }
コード例 #4
0
 static public void AddUSENEWINPUT()
 {
     if (EditorUtility.DisplayDialog("Use New Input System", "This will switch the Input Device Manager to read from Unity's new Input System. You must have already added the Input System package.\n\nSee the configuration manual in Plugins > Pixel Crushers > Common > Documentation.", "OK", "Cancel"))
     {
         MoreEditorUtility.TryAddScriptingDefineSymbols("USE_NEW_INPUT");
         EditorUtility.DisplayDialog("Using New Input System", "See the configuration manual in Plugins > Pixel Crushers > Common > Documentation.", "OK");
     }
 }
コード例 #5
0
 static public void AddTMPPRESENT()
 {
     if (EditorUtility.DisplayDialog("Enable TextMesh Pro Support", "This will enable TextMesh Pro support. 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");
         TouchScriptsWithScriptingSymbol("TMP_PRESENT");
         EditorUtility.DisplayDialog("TextMesh Pro Support Enabled", "TextMesh Pro support has been enabled. 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");
     }
 }
コード例 #6
0
 static bool ValidateAddUSEPHYSICS2D()
 {
     return(!MoreEditorUtility.DoesScriptingDefineSymbolExist("USE_PHYSICS2D"));
 }
コード例 #7
0
 static bool ValidateAddUSENEWINPUT()
 {
     return(!MoreEditorUtility.DoesScriptingDefineSymbolExist("USE_NEW_INPUT"));
 }
コード例 #8
0
 static bool ValidateAddUSESTM()
 {
     return(!MoreEditorUtility.DoesScriptingDefineSymbolExist("USE_STM"));
 }
コード例 #9
0
 static bool ValidateAddTMPPRESENT()
 {
     return(!MoreEditorUtility.DoesScriptingDefineSymbolExist("TMP_PRESENT"));
 }