Console

Enjoying Essential Systems?Leave a review

Learn to use the included command console.

Usage

Open the console at runtime by pressing F7. Type any registered command or type help to list all available commands and their descriptions.

Creating a command

Annotate any public static string method with:

[Command("<command-name>", "<description>")]

Example:

public class TestClass : MonoBehaviour
{
    [Command("say-hello", "simply says hello")]
    public static string SayHelloCommand(out EConsoleColor color, params string[] args)
    {
        color = EConsoleColor.Output;
        return "Hello!";
    }
}
Last updated