Enabling and Disabling Lunar Mobile Console - SpaceMadness/lunar-unity-console GitHub Wiki
Table of Contents
Enabling/Disabling plugin
You can enable/disable the plugin in Unity editor or from the command line.
From Editor menu
- To disable:
Window ▶ Lunar Mobile Console ▶ Disable - To enable:
Window ▶ Lunar Mobile Console ▶ Enable
From Command line
- To disable:
<UNITY_BIN_PATH> -quit -batchmode -executeMethod LunarConsoleEditorInternal.Installer.DisablePlugin
- To enable:
<UNITY_BIN_PATH> -quit -batchmode -executeMethod LunarConsoleEditorInternal.Installer.EnablePlugin
<UNITY_BIN_PATH>
locations:
- Mac OS X:
/Applications/Unity/Unity.app/Contents/MacOS/Unity
- Windows:
c:\Program Files\Unity\Editor\Unity.exe
- Linux: TBD
From Shell scripts
// TBD: check Assets/LunarConsole/Editor/Automation
directory
Platform-Specific
iOS
- If enabled: the plugin source files would be injected into the generated Xcode project on a post build step.
- If disabled: the generated Xcode project would remain unchanged.
Important: make sure to "replace" your generated Xcode project whenever you switch the plugin from enabled to disabled (or back). Failing to do so may lead to an unexpected result!
Android
Working with Android is a bit tricky since Unity does not generate any intermediate projects (or at least no one uses this option). Toggling between enabled and disabled state will modify the import settings of Assets/LunarConsole/Editor/Android/lunar-console.aar
file.
- If enabled: the AAR file would be included into the final APK.
- If disabled: the AAR file would be excluded from the final APK.