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.