Awesome
Lunar Unity Mobile Console
Asset store links:
- PRO: https://assetstore.unity.com/packages/tools/gui/lunar-mobile-console-pro-43800
- FREE: https://assetstore.unity.com/packages/tools/gui/lunar-mobile-console-free-82881
Requires Unity 5.2 or later.
iOS demo app: coming soon Apple forbids any kind of demos on the AppStore. Investigating...
Android demo app: https://play.google.com/store/apps/details?id=com.spacemadness.LunarConsole
If you enjoy using the plugin - please, rate and review on the Asset Store!
<img width="465" src="https://cloud.githubusercontent.com/assets/786644/14592627/a7757736-04d5-11e6-9eef-62257823a83a.png">Table of Contents
About
The project goal is to build a high-performance and lightweight Unity native iOS/Android console for ease of testing and debugging.
- Check Official Wiki for additional information, troubleshooting and guides.
- Visit Unity Forums Thread for discussions and general questions.
Platform Support
- iOS: requires iOS 8 or later
- Android: requires API Level 14 or later
Key Benefits
- Native C/Objective-C/Java code with a low memory footprint.
- Works well with huge logs amount (up to 65536 entries).
- Completely built with native iOS/Android UI (does NOT rely on Unity GUI).
- Resolution independent (looks great on highres/retina displays).
- Does NOT modify scenes and does NOT add new assets.
- Removes completely from the release build with a single mouse click or from command line (absolutely NO traces left).
Features
- Instant error notification (never miss an unhandled exception again): <img src="https://cloud.githubusercontent.com/assets/786644/12805825/799b00e8-cab4-11e5-97ac-c90c50f0a9d2.PNG" width=320/>
- Quick logger output access with a multi touch gesture: <img src="https://cloud.githubusercontent.com/assets/786644/23056940/a94b79ee-f4a2-11e6-93bb-ee5817bff6fa.png" width=320/>
- Crystal clear font and a nice mobile-friendly interface: <img src="https://cloud.githubusercontent.com/assets/786644/18074942/86cc426c-6e25-11e6-8544-0bbe21379af3.PNG" width=320/>
- User-Defined Actions & Variables (currently in preview): <img src="https://cloud.githubusercontent.com/assets/786644/23057311/651d8cba-f4a4-11e6-9ad4-4cfe49967942.png" width=320/>
- Transparent log overlay view: <img src="https://cloud.githubusercontent.com/assets/786644/18074881/07d43190-6e25-11e6-9c48-407adc9be102.png" width=320/>
- Filter by text and log type: <img src="https://cloud.githubusercontent.com/assets/786644/18074948/8a02785c-6e25-11e6-9d49-af934213a905.PNG" width=320/>
Installation
-
Automatic:
Unity Editor Menu: Window ▶ Lunar Mobile Console ▶ Install... -
Manual:
Drag'n'DropLunarConsol.prefab
(Assets/LunarConsole/Scripts/LunarConsole.prefab) into your current scene hierarchy and save your changes. You only need to do it once for your startup scene.
Usage
You can open the console with a multi touch gesture or using the API call from a script (see API Guide for details).
Configuration
- Select
LunarConsole
game object in theHierarchy
window.
<img src="https://cloud.githubusercontent.com/assets/786644/18031101/ada34058-6c85-11e6-947b-2f85d657a8ea.png" width=244/> - Find
Lunar Console
script settings in theInspector
window.
<img src="https://cloud.githubusercontent.com/assets/786644/18031112/2eb5120c-6c86-11e6-9e32-7b947897797d.png" width=276/>- Set the capacity (the maximum number of lines the console can hold). It's advised to keep this amount low (the more you have - the more memory it will take).
- Set the trim amount (how many lines will be removed from the beginning of the log when console overflows).
- Choose a gesture from the drop down list or select
None
to completely disable multi touch gestures (you would still be able to open the console from your scripts). - Check "Remove Rich Text Tags" to remove rich text tags from the output (may cause performance overhead).
User-Defined Actions and Variables (only available in PRO version)
For more information on Actions and Variables check the user guide.
Stack Trace Frames
Touch the log entry to view its stack trace.
Important: make sure to properly configure your build settings (File ▶ Build Settings...) otherwise you will only be able to see exceptions traces.
-
iOS: check the "Development Build" checkbox
<img src="https://cloud.githubusercontent.com/assets/786644/18031076/81a757e2-6c84-11e6-870b-49fbf67473dd.png" width=630/> -
Android: check the "Development Build" checkbox
<img src="https://cloud.githubusercontent.com/assets/786644/18031075/81a3e36e-6c84-11e6-8484-627441e7fb91.png" width=630/>
For more info see: http://docs.unity3d.com/Manual/PublishingBuilds.html
Enabling/Disabling Plugin
If Lunar Mobile Console is
- enabled - the plugin files would appear in your iOS/Android build: you can access the console with a multi touch gesture or from a script.
- disabled - the plugin files would NOT appear in your iOS/Android build: you can't access the console (multi touch gestures or API calls would be ignored).
To
- disable:
Window ▶ Lunar Mobile Console ▶ Disable - enable:
Window ▶ Lunar Mobile Console ▶ Enable
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!
<img width="404" src="https://cloud.githubusercontent.com/assets/786644/18031143/985708a4-6c87-11e6-995a-69073b6eff6b.png">For more detailed information check Wiki page: Enabling and Disabling Lunar Mobile Console.
Unity Cloud Build Support
Lunar Mobile Console is fully compatible with Unity Cloud Build.
- For more information check the user guide
- For Cloud Build related issues check the troubleshooting guide
Build System Support
You can enable/disable the plugin from the command line (and make it a part of your build process)
- 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
Note: if you're using Lunar Mobile Console older than v0.8.0 (v0.0.1b-v0.7.1) you would need to useLunarConsolePluginInternal.Installer.DisablePlugin
andLunarConsolePluginInternal.Installer.EnablePlugin
instead.
Troubleshooting
Please, visit the Troubleshooting Wiki page or post your question on the official forum thread.
Miscellaneous
Check for Updates
Window ▶ Lunar Mobile Console ▶ Check for updates...
Bug Reports
Window ▶ Lunar Mobile Console ▶ Report bug...
Contacts
For anything else: lunar.plugin@gmail.com
Social Media
- Twitter: @LunarPlugin
- Facebook: www.facebook.com/LunarPlugin
- Unity Forums Thread: [Lunar Mobile Console] High-performance Unity iOS/Android logger built with native platform UI