SpaceMadness / lunar-unity-plugin

A UNIX/Quake3 style command line interface to Unity editor
74 stars 8 forks source link

Lunar plugin for Unity

Download it from the Asset Store

Requires Unity 4.6 or later.

Project Goals

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.

Quick Start

Open Terminal window (see: Getting Started)

Use Editor's menu: Window ▶ Lunar ▶ Terminal

Create command (see: Commands)

[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

Create key bindings (see: Key Binding)

Create config variable (see: Config Variables)

[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.

Plugin Talk

Seattle Unity User Group - Lunar Plugin Talk (7/30/2015)

Showcases

Social media

Contacts

For any other questions: lunar.plugin@gmail.com