https://github.com/sandrofigo/debug-menu-unity3d
A debug menu to call methods on active MonoBehaviours in Unity
https://github.com/sandrofigo/debug-menu-unity3d
debugging tool unity unity3d unity3d-plugin
Last synced: 10 months ago
JSON representation
A debug menu to call methods on active MonoBehaviours in Unity
- Host: GitHub
- URL: https://github.com/sandrofigo/debug-menu-unity3d
- Owner: sandrofigo
- License: mit
- Created: 2020-03-08T17:47:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-31T14:44:50.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T17:24:53.808Z (over 1 year ago)
- Topics: debugging, tool, unity, unity3d, unity3d-plugin
- Language: C#
- Homepage:
- Size: 146 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Debug Menu
A debug menu to call methods on active MonoBehaviours in Unity
[](https://openupm.com/packages/com.sandrofigo.debug-menu-unity3d/)
## Installation
There are multiple ways to install this package into your project:
- Add it to your project through [OpenUPM](https://openupm.com/packages/com.sandrofigo.debug-menu-unity3d/) (recommended)
- Add the package to the Unity package manager using the HTTPS URL of this repository (recommended)
- Download the whole repository as a .zip and place the contents into a subfolder in your assets folder
- Fork the repository and add it as a submodule in git
## Usage
```csharp
using DebugMenu;
using UnityEngine;
public class Foo : MonoBehaviour
{
[DebugMethod]
public void Bar()
{
Debug.Log("Hello World!");
}
}
```
This will create a button inside the debug menu which you can access by pressing F3 while the game is running.
Note, this will only work if the MonoBehaviour is active in a scene when it is loaded.
For a more detailed documentation of attributes, please refer to the [Wiki](https://github.com/sandrofigo/Debug-Menu-Unity3D/wiki/Attribute-Usage).
## Collaboration
Support this project with a ⭐️, report an issue or if you feel adventurous and would like to extend the functionality open a pull request.