Skip to content

enisbt/unity-simple-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-simple-console

Unity 2021.3+ License: MIT

A simple Unity in-game command console.

Installation

Simply import the .unitypackage file in the Releases page to your project. Console object is in the Prefabs folder.

Usage

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.

Component Setup

Add [ConsoleCommand] attribute to the functions you want to use in the console.

Console Command Setup

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.

Alias Setup

To invoke DealDamage function in the console you need to give hit 15 command.

Notes

License

Distributed under the MIT License. See LICENSE for more information.

About

A simple Unity in-game command console.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages