UnityDebugModeDefineSymbol
A useful tool for running specific code
com.inc8877.unity-debug-mode-define-symbol 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/unity-debug-mode-define-symbol.git README Markdown
Copy this to your project's README.md
## Installation
Add **UnityDebugModeDefineSymbol** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/unity-debug-mode-define-symbol.git
```
[](https://www.pkglnk.dev/pkg/unity-debug-mode-define-symbol)README
UnityDebugModeDefineSymbol
A useful tool for running specific code
What it is?
Table of Contents
Compatibility
| Unity | Compatible |
|---|---|
| 2021 | :white_check_mark: |
| 2020 | :white_check_mark: |
| 2019 | :white_check_mark: |
How to use
- Add this tool to your project [how]
- Manage debug mode by following this path
Tools -> Debug Mode Definition ->On/Off
- For code that should be executed only when the debug mode is turned on, put it in the definition like this:
// ... code somewhere
#if DEBUG_MODE_IN_USE
// code here will be executed if the debug mode is turned on
#endif
// ... code somewhere
Installation
Install via OpenUPM
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.inc8877.unity-debug-mode-define-symbol
Install via Git URL
Open Packages/manifest.json with your favorite text editor. Add the following line to the dependencies block.
{
"dependencies": {
"com.inc8877.unity-debug-mode-define-symbol": "https://github.com/inc8877/UnityDebugModeDefineSymbol.git",
}
}
Credits
Cover background by Florian Olivo
No comments yet. Be the first!