logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class InspectorDrawPass

    Draws an editor the way the Inspector window draws it, headlessly, so a contract over "drawing never writes" exercises the same entry points a selection does. The Inspector asks UnityEditor.Editor.CreateInspectorGUI first and binds what it returns; only when that is null does it host UnityEditor.Editor.OnInspectorGUI, which it then draws frame by frame (ImmediateModeGuiPass).

    Inheritance
    object
    InspectorDrawPass
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Shared.Editor
    Assembly: Serenity.Tests.Shared.Editor.dll
    Syntax
    public static class InspectorDrawPass

    Methods

    DrawLikeTheInspector(Editor)

    Draws editor once, the way selecting its target does.

    Declaration
    public static void DrawLikeTheInspector(Editor editor)
    Parameters
    Type Name Description
    Editor editor
    In this article
    © 2026 Serenity. All Rights Reserved