Download it from the Asset Store
Requires Unity 4.6 or later.
Imagine, you've just added this new cool feature and want to test it but keep losing the game before you actually get there. Maybe it would be easier if zombies die faster, things go slower or you simply can't get killed? Or maybe you just want to skip all of these and jump straight into the action? On top of that, you don't really want to mess around with Editor, modify scenes or "break" anything.
If so - you should give Lunar a try! It's a free and open source Quake3-flavored-Unix-style command line solution for your game.
Use Editor's menu: Window ▶ Lunar ▶ Terminal
Commands.cs
in Assets/Editor
folder:
using LunarPlugin;
[CCommand("test")] class Cmd_test : CCommand { void Execute() { PrintIndent("Hello, Unity!"); } }
* Open terminal window and type command's name:
test Hello, Unity!
* List commands:
cmdlist
> bind t test
> bind ctrl+t test
CVars.cs
in Assets/Scripts
folder:
using LunarPlugin;
[CVarContainer] static class Cvars { public static readonly CVar myBool = new CVar("myBool", false); public static readonly CVar myInt = new CVar("myInt", 10); public static readonly CVar myFloat = new CVar("myFloat", 3.14f); public static readonly CVar myString = new CVar("myString", "Hello!"); }
* Open terminal window and list variables:
cvarlist myBool 0 myFloat 3.14 myInt 10 myString Hello!
* Set variable's value:
myString "Hello, Lunar!"
* Get variable's value:
myString myString is:"Hello, Lunar!" default:"Hello!"
## User Guide
Check wiki page for more detailed guide.
Seattle Unity User Group - Lunar Plugin Talk (7/30/2015)
Project: Unity 2D Roguelike
Demonstrates some possible use cases of the plugin for Unity's 2D Roguelike tutorial.
Features:
Project: Stealth
Demonstrates some possible use cases of the plugin for Unity's Stealth tutorial.
Features:
Project: Space Shooter
Demonstrates some possible use cases of the plugin for Unity's Space Shooter tutorial.
Features:
Angry Bots
Demonstrates some possible use cases of the plugin for Unity's Angry Bots demo.
Features:
Project: Survival shooter
// TBD
For any other questions: lunar.plugin@gmail.com