Skip to content

CodeSteel/unity-console-commands

Repository files navigation

unity-console-commands

An in-game console & attribute-based command system.

Supports

✅ Command history

✅ Command suggestions

✅ Arrow key navigation

✅ Multiple arguments

✅ C# attributes

Easy to use!

[ConsoleCommand("time-scale", "Set the game time scale")]
public static string TimeScale(string[] args)
{
    if (args.Length is > 1 or 0) return "tooManyArguments";
    if (float.TryParse(args[0], out float timeValue))
    {
        Time.timeScale = timeValue;
        return "successful";
    }
    return string.Empty;
}

Showcase

Unity_gguXMHEHeE.mp4

About

An in-game console & attribute-based command system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages