A simple Unity in-game command console.
Simply import the .unitypackage file in the Releases page to your project. Console object is in the Prefabs
folder.
Add the Simple Console
object in the Prefabs folder to your canvas. Console will be activate/deactivate when you press the `
key by default. This can change in the Simple Console object.
Add [ConsoleCommand]
attribute to the functions you want to use in the console.
With this set up, DealDamage
function can be used in the console like this: DealDamage 15
. This command will substract 15 health from the object.
Functions can have aliases for ease of use in the console.
To invoke DealDamage
function in the console you need to give hit 15
command.
- Only C# base data types are supported to use as parameters. For more information: https://learn.microsoft.com/en-us/dotnet/api/system.convert?view=net-7.0
- This asset requires
TextMeshPro
to work.
Distributed under the MIT License. See LICENSE
for more information.