Disable Unity Debug Canvas

2.2k views Asked by At

For about an hour ago a Debug Canvas started Instantiating on Play. I've searched around on the internet but can't seem to find anything. Are there by any chance some of you who might know how to disable it as it's taking up about half of the screen?

Edit: I tried to install the project on another computer and it doesn't show up. So idk if it has anything to do with the project or Unity itself.

Image

2

There are 2 answers

0
Yousif Ragab On BEST ANSWER

Add this code to one of your scripts on Awake or Start:

UnityEngine.Rendering.DebugManager.instance.enableRuntimeUI = false;

This is mentioned in documentation

You have to be on CoreRP 12 or later as mentioned here

1
danlvr On

Try Left Ctrl + Backspace to toogle it, or remove the Universal RP (Render Pipeline) package or disable it by code:

bool debugupdater_disabled = false;
 
private void Update()
    {
        if (debugupdater_disabled)
            return;
 
        GameObject debugUpdater = GameObject.Find("[Debug Updater]");
        if(debugUpdater != null)
        {
            Destroy(debugUpdater);
            debugupdater_disabled = true;
            Debug.Log("done");
        }
    }