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).
Inherited Members
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 |