Giter Club home page Giter Club logo

abcconsole's Introduction

AbcConsole

Mobile-friendly debug console!

Buy Me A Coffee

output

Features

Check and copy logs

Autocomplete for mobile comfort

Description

It is simple, but has all the necessary elements.
Check and copy logs generated on the actual machine.
You can define your own debug methods, and enter and execute them.
You only need to enter a few characters of the method name, and you can comfortably use AUTOCOMPLETE to enter the name!!

Checked by iOS, Android.
(On Android, due to Unity's limitations, you need to close the keyboard and then select ui buttons.)
Of course, it can also be used with Editor, Windows, and Mac.
You can start it with the tilde key, and the Tab key, up and down keys, etc. also work like a common console.

Instructions

  • Package Manager
    • Import AnKuchen https://github.com/kyubuns/AnKuchen.git?path=Unity/Assets/AnKuchen
    • Import AbcConsole https://github.com/kyubuns/AbcConsole.git?path=Assets/AbcConsole

How to use

Setup

Place the AbcConsole GameObject in your first scene from the menu Assets > Create > AbcConsole.
You can open the AbcConsole in the upper left button.

Define debug command

All you have to do is define the method with the AbcCommand Attribute.
Primitive types can be used as arguments.

public static class OriginalCommand
{
    [AbcCommand("Show App Version")]
    public static void AppVersion()
    {
        Debug.Log($"AppVersion is {Application.version}");
    }

    [AbcCommand("Message To DebugLog")]
    public static void Echo(string message)
    {
        Debug.Log(message);
    }
}

FPS Counter

The FPS Counter is included in AbcConsole.
You can view it by typing [FpsCounter] in the Console.
In an environment where FrameTimingManager is enabled, more detailed information will be displayed.

Screen Shot 2021-09-23 at 18 14 31

FAQ

I want to change the color and location of the TriggerButton.

You can change AbcConsole GameObject.
My recommendation is to make the color of AbcConsole/Canvas/TriggerButton/Base transparent.

I want to turn it off when I do a production build.

Delete AbcConsole GameObject.
Or, Instantiate only when necessary, as follows. (Recommend)

[Conditional("DEVELOPMENT_BUILD"), Conditional("UNITY_EDITOR")]
private void CreateAbcConsoleForDebug()
{
    Instantiate(abcConsolePrefab);
}

I want to use a trigger other than the Button.

Disable AbcConsole/Canvas/TriggerButton Object.
You can also use the OnClickTriggerButton method of the Root Component (which AbcConsole has).

Requirements

  • Requires Unity2019.4 or later

License

MIT License (see LICENSE)

SpecialThanks

Buy me a coffee

Are you enjoying save time?
Buy me a coffee if you love my code!
https://www.buymeacoffee.com/kyubuns

"I used it for this game!"

I'd be happy to receive reports like "I used it for this game!"
Please contact me by email, twitter or any other means.
(This library is MIT licensed, so reporting is NOT mandatory.)
https://kyubuns.dev/

abcconsole's People

Contributors

kyubuns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.