Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

spaceapegames/unity-JBConsole

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityConsole

DEPRECATED

THIS PROJECT IS NOW DEPRECATED AND NO LONGER MAINTAINED.

PLEASE USE THE ACTIVE PROJECT INSTEAD:

https://github.com/spaceapegames/shared-unity-jbconsole

Junkbyte Console for Unity.

This project is a 'port' of Junkbyte Console from Flash/actionscript to Unity. http://code.google.com/p/flash-console/

Unity UI Extension

When you first open the Junkbyte editor window it will ask you if you want to create a font reference. This will then create a JBConsoleConfig file in the Resources folder. This config will also reference the UI prefab for the JBConsole.

In your project after you have started the JBConsole you can then instantiate and register it to the JBConsole as an external UI.

jbConsoleUIGO = Instantiate(JBConsoleConfig.GetExternalUIPrefab());
var jbConsoleExternalUI = jbConsoleUIGO.GetComponent<JBConsoleExternalUI>();
JBConsole.instance.AddExternalUI(jbConsoleExternalUI);

Toggles

You can now add toggles to the menus with the code

JBConsole.AddToggle("ToggleName", delegate
{
    // setter eg, toggle = !toggle;
}, delegate
{
    // getter eg, return toggle;
});

Unity Projects

unity-build-unity-project

This is where the DLLs get copied to after the build and in this project the UI prefab is constructed against the DLL.

unity-script-ui-testing

This is a rather hacky project that contains a copy of the JBConsole source and a version of the UI prefab that is linked to these scripts. This is the place to go to try to debug an issue with the UI!

unity-test-unity-project

This is a more traditional test project that contains the JBConsole package retrieved via nuget and uses it with some simple test buttons etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.2%
  • Python 1.8%