0

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

Bugge
  • 15
  • 7

2 Answers2

1

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

0

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");
        }
    }
danlvr
  • 1
  • 2
  • I've tried the Left CTRL + Backspace but it isn't working. I kind of need URP and it seems very inefficient disabling it via code. There must be a way to disable it just like I enabled it somehow. It started showing up after I downloaded the new Input System but that just seems to be a coincidence. – Bugge Mar 03 '22 at 22:05