docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    DeveloperConsole
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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()
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)