Skip to content

dkoleev/UnityDevConsole

Repository files navigation

UnityDevConsole

Developer console for Unity game engine.

Description

Allows executing console command in runtime.

Installation

You can install DevConsole using any of the following methods

  1. UPM Branch

    Use UPM to install the package via the following git URL:

    https://github.com/dkoleev/UnityDevConsole.git
    

  2. OpenUPM

    openupm add com.yogi.devconsole
    

    project page on OpneUPM

How to setup

  • Drag prefab DevConsole_GUI to the scene.

  • Add ENABLE_DEV_CONSOLE define to ProjectSettings -> Scripting Define Symbols.

image

You can add ENABLE_DEV_CONSOLE for dev build and remove it for release build in your build pipline.

How to use

  • Create public static method.
  • Add attribute DevConsoleCommand for this method.
  • Specify the command name in the attribute parameter commandName.
    [DevConsoleCommand("sum")]
    public static void Sum(int arg1, int arg2) {
        Debug.Log(arg1 + arg2);
    }

image

About

Developer console for Unity game engine.

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages