Unity Console Package
A downloadable asset pack
Download NowName your own price
Console Command System for Unity
Overview
This package provides a simple console command system for Unity that allows you to register, execute, and display console commands in your game. It consists of several components that work together to handle commands, display output, and capture user input.
Dependencies
- Text Mesh Pro
How to Use
- Add the "ConsoleCanvas" prefab to your scene.
- Go to the function that you want to activate with a command in the console.
- Add "[ConsoleCommand]" to the line before your function.
- Run the project and type your function name followed by any parameters specified in your function.
Example Code
using UnityEngine;
public class PlayerDebugging : MonoBehaviour
{
[ConsoleCommand]
public void DebugMessage(string message)
{
Debug.Log(message);
}
}
Example Console Command
DebugMessage myMessageThatIWantToPrint
Example Console Output
myMessageThatIWantToPrint
Status | Released |
Category | Assets |
Author | musclecrampstudio |
Tags | console, debug, Graphical User Interface (GUI), tool, Unity |
Download
Download NowName your own price
Click download now to get access to the following files:
UnityConsole.unitypackage 13 kB
Leave a comment
Log in with itch.io to leave a comment.