Home > other >  Disable Unity Debug Canvas
Disable Unity Debug Canvas

Time:03-05

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

CodePudding user response:

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");
        }
    }

CodePudding user response:

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

  • Related