https://github.com/dkoleev/unitydevconsole
Developer console for Unity game engine.
https://github.com/dkoleev/unitydevconsole
unity unity-dev-console unity-plugin unity3d
Last synced: 4 months ago
JSON representation
Developer console for Unity game engine.
- Host: GitHub
- URL: https://github.com/dkoleev/unitydevconsole
- Owner: dkoleev
- License: mit
- Created: 2023-01-26T14:20:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T14:45:07.000Z (over 3 years ago)
- Last Synced: 2025-08-20T02:48:45.943Z (10 months ago)
- Topics: unity, unity-dev-console, unity-plugin, unity3d
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://docs.unity3d.com/Manual/upm-ui.html)__
Use [UPM](https://docs.unity3d.com/Manual/upm-ui.html) to install the package via the following git URL:
```
https://github.com/dkoleev/UnityDevConsole.git
```

1. __[OpenUPM](https://openupm.com/)__
```
openupm add com.yogi.devconsole
```
> [project page on OpneUPM](https://openupm.com/packages/com.yogi.devconsole/)
## How to setup
* Drag prefab `DevConsole_GUI` to the scene.
* Add `ENABLE_DEV_CONSOLE` define to `ProjectSettings -> Scripting Define Symbols`.

> 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`.
```C#
[DevConsoleCommand("sum")]
public static void Sum(int arg1, int arg2) {
Debug.Log(arg1 + arg2);
}
```
