SpaceMadness / lunar-unity-plugin

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

Play-mode console support #1

Open ZimM-LostPolygon opened 9 years ago

ZimM-LostPolygon commented 9 years ago

Lunar looks great. But I'm really curious - are there plans for adding a console feature to the actual game builds, not just as an Editor window? That'd be really helpful and increase the use number of use cases Lunar can be used in.

weeeBox commented 9 years ago

The answer is "yes"!

This feature is incubating and will be released soon. On top of that, mobile phones will use a powerful native UI.

ZimM-LostPolygon commented 9 years ago

Great! :) Will the in-game console UI be based on IMGUI or on the newer uGUI stuff?

weeeBox commented 9 years ago

I'm trying to build a prototype with immediate mode GUI: still not sure about the final result. I want to have a minimal impact on production titles and an easy way to take the plugin from release builds.

ZimM-LostPolygon commented 9 years ago

That's understandable. Still, I can think of the use case of leaving the console in the release builds to allow the end-user fine-tune the configuration, the way it is in Quake III. Oh, and just a hint, in case you didn't know: scene GameObjects with "EditorOnly" tag are not included in the release builds.

weeeBox commented 9 years ago

Thanks for the hint!

I'll keep you posted as progress goes!

p.s. which platforms do you target?

ZimM-LostPolygon commented 9 years ago

Desktop, mostly. Can't really think of a convenient way to use the console on a mobile device.

Unless... Here's an idea: remote console. You type the commands in the editor, the commands are executed on the remote device, and you get the output back to the Editor console.

weeeBox commented 9 years ago

This feature was in the early prototype but was never released :)

ZimM-LostPolygon commented 9 years ago

Well, it'd be nice to have it reborn someday :) Typing in commands on a mobile device would be a real pain if you are testing a lot of different stuff, and this feature could solve it easily.

weeeBox commented 9 years ago

Just wait for mobile part to be released ;)

cxbxmxcx commented 8 years ago

I have converted the Editor console to an in game player console with a UGUI interface.

image

There is a screen shot showing the console running in a built version on Windows desktop but it should support other platforms as well.

If there is interest let me know and I can either provide the source.

Cheers,

JS

weeeBox commented 8 years ago

That's great!

I haven't been working on the plugin for a long time: was drown in other projects and VR. Sure, create a pull request when you're done and I can publish the update on the Asset Store! If you have any sources on the code base - feel free to ping me.

cxbxmxcx commented 8 years ago

I had to remove the Editor in order to get it to work quickly as a runtime console. The use of statics in the code was causing too many conflicts when I tried to run unattached in a built version.

I could push my extension in as an example of a standalone runtime player console?

JS

weeeBox commented 8 years ago

Hey JS

I'm not quite sure about the statics issues but we can figure it out. Share your code!

On Sun, May 15, 2016 at 11:39 AM, cxbxmxcx notifications@github.com wrote:

I had to remove the Editor in order to get it to work quickly as a runtime console. The use of statics in the code was causing too many conflicts when I tried to run unattached in a built version.

I could push my extension in as an example of a standalone runtime player console?

JS

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/SpaceMadness/lunar-unity-plugin/issues/1#issuecomment-219302801