Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Runtime Console uGUI

Discussion in 'Assets and Asset Store' started by Deleted User, Apr 19, 2017.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    I've been working on this for a while and i finally decided to release it on the assets store.
    Asset store link: https://www.assetstore.unity3d.com/en/#!/content/85795
    WebGL demo link: https://miroiu.github.io/unity.html
    Documentation link: https://miroiu.github.io/Doc/index.html#!/article/home

    Runtime Console is an easy to use and setup in-game console that lets you view logs outside of the editor, define commands which can then be called from the console's user interface, catch exceptions and much more.

    The commands you see below, are just test commands with different types of parameters.

    Expanded log.
    Autocomplete suggestions.
    Stacked logs.




    Filtered logs.


    Expanded exception log containing stack trace.


    Some example commands.


    Type containing commands added to the console to be parsed.




    Designed for unity 5.4.2f2, tested with unity 5.4.2.f2, 5.0.0.f4 and Unity Collaborate 2017.1.0b5 submitted with 5.0.0.f4.

    Main features:
    • Full source code included !
    • Allows you to specify the classes that contain commands improving performance in big projects
    • Commands are defined with the [Command] attribute
    • Works with any parameter type as long as there is a converter for it
    • Syntax can be customized by replacing any existent converter or adding a new one
    • Accepts user-defined log types
    • Can be set to catch exceptions generated by commands
    • Logs can be filtered by log type
    • Similar logs can be stacked
    • Logs that contain additional information can be expanded in a new window
    • Autocomplete suggestions based on text entered
    • Keeps a history of executed commands which can be navigated with arrow keys
    • Built-in commands
    • Flexible user interface built on top of uGUI
    New:
    • Included the full source code
    • Refactored UI code
    • Added two more skins with different functionality
    The main parts that assembles the console are the Logger, the Syntax Analyzer, the Parser and the Type Converters which can be customized, thing that i will show in the upcoming documentation.

    That's all for now, thank you, and i'll wait for your constructive feedback bellow.

    FAQ:
    1. Q: How do i hide the console when the game starts ?
    A: Find the object with the Console Window script attached and check Start Hidden.

    Contact: miroiu.emanuel@yahoo.com
     

    Attached Files:

    Last edited by a moderator: Jul 20, 2018
    nratcliff likes this.
  2. nratcliff

    nratcliff

    Joined:
    Jul 5, 2014
    Posts:
    66
    This looks pretty great! Bookmarked :)
     
  3. Deleted User

    Deleted User

    Guest

    Hey again,

    The things marked as "Done" are indeed done, but not yet released, i will update the console as soon as possible.
    Also, I did test it on mobile and webGL and it works fine, the only problem encountered was with webGL where some code had to be removed in order to work, i'll explain everything in the video tutorials which i hope they'll be ready this week or in the next one.

    Some screenshots:


     
  4. Deleted User

    Deleted User

    Guest

    Hello,

    A web player demo is now live at https://emytofast.github.io/ .
    In the last update i messed up something and the UI was not displaying correctly in some versions of unity editor. But with this update everything should be fixed.
    Also check out the Done section to see the new features.
     
  5. Deleted User

    Deleted User

    Guest

    Hey, the first tutorial is out.

    I had a hard time finding a software to record / edit the video with.
    I did a version of the tutorial using voice, but it was ~20 minutes long.
    So I decided to just write on screen and now it's 2:39 minutes long.

     
  6. Deleted User

    Deleted User

    Guest

    A new tutorial is out !

     
  7. Deleted User

    Deleted User

    Guest

    Creating new log types !

     
  8. Deleted User

    Deleted User

    Guest

  9. Deleted User

    Deleted User

    Guest

    The source code will be included in the next update, although it is not obfuscated in the dlls.
     
  10. Deleted User

    Deleted User

    Guest

  11. Deleted User

    Deleted User

    Guest

    The new update which includes the source code, two new skins and refactored UI code is published.
     
  12. SpyrosUn

    SpyrosUn

    Joined:
    Nov 20, 2016
    Posts:
    144
    Hi @emytofast, thanks for the great plugin, wish that I see more from you in the future :) Very nice work with attention to detail, great stuff there.

    Thanks a lot for helping me hide my console window by default. Had a bit of trouble with that, but it's actually pretty straightforward.

    One thing i noticed is that if i drag the Window to the consoleManager, the Start() method of my manager does not seem to be executed. I had a method to list the commands every time the console starts (
    RTConsole.Instance.Execute("RTC.Commands");), which does not seem to execute when the console window starts hidden. Would be nice if you can point to a solution for this :D

    Thank you for your prompt replies and I will definitely let you know if I have more questions so that you can possibly use them in your FAQ.

    Cheers !
     
  13. Deleted User

    Deleted User

    Guest

    Hi, sorry for the late response, i updated the console to include a checkbox for the default visibility.
    It can be found in the ConsoleWindow script.
     
    Last edited by a moderator: Jan 10, 2018
  14. SpyrosUn

    SpyrosUn

    Joined:
    Nov 20, 2016
    Posts:
    144
    Awesome, thanks a lot !