Class DeveloperConsole
Test helpers for the on-screen developer console. When the console is open it draws over the screen, so any backbuffer or XR image capture includes it and fails the comparison.
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public static class DeveloperConsole
Properties
IsVisible
Whether the on-screen developer console is currently visible.
Declaration
public static bool IsVisible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
ThrowIfVisible()
Fails the current test if the on-screen developer console is visible. Call this before capturing an image from the backbuffer or an XR display.
Declaration
public static void ThrowIfVisible()