A simple console command addon for Mirror.
This is an addon for mirror that allows commands to be entered into the console.
This currently only works for Windows server builds!
- Install the latest release into your project.
- Add ServerConsole.cs to your NetworkManager.
- Add the following Attribute: [Cooper.ConsoleCommand("CommandNameHere")] to your method(s)
- Take a look at the example commands in DefaultCommands.cs
- Profit!
Thank you to Garry Newman, who provided some of the boilerplate code for allowing input into the console. See his blog: https://garry.tv/unity-batchmode-console