A shell-like debug console on Unity runtime (for my very personal use) (WIP)
- Import UniTask
- It is recommended to import InputSystem but can deal with old InputManager.
git submodule add https://github.com/Rijicho/Unish.git Assets/Unish
- Write a script below, attach it to any GameObject and play the scene
using RUtil.Debug.Shell;
using UnityEngine;
public class Test : MonoBehaviour
{
private void Start()
{
new Unish().Run();
}
}
It's highly recommended to replace the terrible default font with your beautiful font:
using RUtil.Debug.Shell;
using UnityEngine;
public class Test : MonoBehaviour
{
[SerializeField] private Font font;
private void Start()
{
new Unish(terminal: new DefaultTerminal(font)).Run();
}
}
h
shows the brief help.- Input
lc -d
to show all commands in detail. q
closes the window.- Ctrl(Command)+Arrows scroll the window.
- Window size and font size can be changed by environment variables:
- UNISH_CHARCNT_PER_LINE
- UNISH_LINECNT
- UNISH_FONTSIZE
- If you want to save the settings, please put .unishrc and .uprofile (like zsh's .zshrc and .zprofile) at
Application.PersistentDataPath
.- The default home path can be changed by overriding Unish's directory system by script.