An in-game console & attribute-based command system.
✅ Command history
✅ Command suggestions
✅ Arrow key navigation
✅ Multiple arguments
✅ C# attributes
[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;
}