Skip to content

Conversation

@arttu-peltonen
Copy link
Contributor

Purpose of this PR

Adding 21.1 backport of #5339 (case https://fogbugz.unity3d.com/f/cases/1361811/).


Testing status

Tested manually on 2021.1.24f1 that adding a MonoBehaviour script with following code correctly disables the debug hotkey & access to Debug UI:

void Awake ()
{
    DebugManager.instance.enableRuntimeUI = false;
}

Comments to reviewers

The original fogbugz ticket https://fogbugz.unity3d.com/f/cases/1345783/ currently doesn't have a 21.1 backport request, but I created this just in case if another release is made for 21.1.

* Add DebugManager.enableRuntimeUI that disables DebugUpdater entirely.

The code structure has changed quite a bit so this backport only includes the essential part required to fix case 1345783.
@arttu-peltonen arttu-peltonen marked this pull request as ready for review October 12, 2021 09:07

You can display read-only items such as the FPS counter independently of the **Render Pipeline Debug** window. This means that when you disable the **Render Pipeline Debug** window, they are still visible in the top right corner of the screen. This is particularly useful if you want to track particular values without cluttering the screen.

You can disable the runtime UI entirely by using the [enableRuntimeUI](https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.Rendering.DebugManager.html#UnityEngine_Rendering_DebugManager_enableRuntimeUI) property.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question here - URL doesn't exist now but I assume it would appear once the docs are updated?

@sebastienlagarde sebastienlagarde merged commit cae201f into 2021.1/staging Oct 19, 2021
@sebastienlagarde sebastienlagarde deleted the 2021.1/backport/1345783 branch October 19, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants