DebugCommandExecutor

https://github.com/kyubuns/DebugCommandExecutor.git?path=Assets/DebugCommandExecutor

CleanShot_20240304-135151.mp4

Features

  • Just define the method with DebugCommandAttributes.
  • Debug commands can be sent to players from Editor on different devices on the same network.
  • Autocomplete (Tab, Shift-Tab)
  • History (UpArrow, DownArrow)

Define Debug Commands

[DebugCommand("Echo text")]
public static void Echo(string text)
{
    Debug.Log(text);
}

[DebugCommand]
public static void Add(int a, int b)
{
    Debug.Log($"{a} + {b} = {a + b}");
}

Execute

Tools > Debug Command Executor > Window

Note

  • UNITY_EDITOR or DEVELOPMENT_BUILD only.

Recommend

  • By registering shortcuts, you can quickly input debugging commands at any time!

CleanShot_20240304-134813@2x

Target Environment

  • Unity2022.3 or later

License

MIT License (see LICENSE)