From 048e5980a0d556a3165072622cd03d2e46ee33c0 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Fri, 13 May 2022 20:44:51 +1000 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 31dec33..f26f497 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,20 @@ If these fixes do not work, please create an issue in this repo and I'll do my b

+### Inspector API + +If you want to inspect an object or Type from outside the C# console, use the `InspectorManager` class: + +**To inspect an object:** +```csharp +UnityExplorer.InspectorManager.Inspect(theObject); +``` + +**To inspect a Type:** +```cs +UnityExplorer.InspectorManager.Inspect(typeof(SomeClass)); +``` + ### Object Explorer * Use the Scene Explorer tab to traverse the active scenes, as well as the DontDestroyOnLoad and HideAndDontSave objects.