Version 3.3.1.2

InspectorUtilities class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class InspectorUtilities
Provides a variety of miscellaneous utilities widely used in the inspector.
Inheritance
  • System.Object
  • InspectorUtilities

Methods

ConvertToDeepReflectionPath(String)
Converts an Odin property path to a deep reflection path.
public static string ConvertToDeepReflectionPath(string odinPropertyPath)
Parameters
System.String odinPropertyPath

Returns
System.String

ConvertToUnityPropertyPath(String)
Converts an Odin property path (without groups included) into a Unity property path.
public static string ConvertToUnityPropertyPath(string odinPropertyPath)
Parameters
System.String odinPropertyPath

Returns
System.String

DrawPropertiesInTree(PropertyTree)
Draws all properties in a given property tree; must be wrapped by a Sirenix.OdinInspector.Editor.InspectorUtilities.BeginDrawPropertyTree(Sirenix.OdinInspector.Editor.PropertyTree,System.Boolean) and Sirenix.OdinInspector.Editor.InspectorUtilities.EndDrawPropertyTree(Sirenix.OdinInspector.Editor.PropertyTree).
public static void DrawPropertiesInTree(PropertyTree tree)
Parameters
PropertyTree tree

The tree to be drawn.

RegisterUnityObjectDirty(Object)
public static void RegisterUnityObjectDirty(Object unityObj)
Parameters
UnityEngine.Object unityObj

ToFieldExpressionContext(InspectorProperty)
public static FieldExpressionContext ToFieldExpressionContext(this InspectorProperty property)
Parameters
InspectorProperty property