Skip to content

GreenData17/Cosmic-Console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmic-Console

CC is a Unity package adding a in-game Console for debugging and controlling a game, outside of the Unity Editor.

cosmic console image

CC automatically gets the logs from unity. calling Unity's log functions is all it needs.

// Unity's log functions
Debug.Log(object message, object context);
Debug.LogWarning(object message, object context);
Debug.LogError(object message, object context);
...

Commands can be created using:

// makes a Command with a description.
Console.AddCommand(string alias, string description, Action<string[]> methodeToExecute);

// makes a command without a description. Commands created using this methode will not appear in the help command.
Console.AddCommand(string alias, Action<string[]> methodeToExecute);

// This is used to remove a command. This is usually not required to be called.
Console.RemoveCommand(string alias);

About

A in-game console for Unity, to debug games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages