InspectorUtilities

Provides a variety of miscellaneous utilities widely used in the inspector.

namespace Sirenix.OdinInspector.Editor
{
public static class InspectorUtilities
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Methods

Return Type Definition Description
void BeginDrawPropertyTree(PropertyTree, bool) Prepares a property tree for drawing, and handles management of undo, as well as marking scenes and drawn assets dirty.
string ConvertToDeepReflectionPath(string) Converts an Odin property path to a deep reflection path.
string ConvertToUnityPropertyPath(string) Converts an Odin property path (without groups included) into a Unity property path.
void DrawPropertiesInTree(PropertyTree) Draws all properties in a given property tree; must be wrapped by a BeginDrawPropertyTree(PropertyTree, bool) and EndDrawPropertyTree(PropertyTree).
void DrawProperty(InspectorProperty, GUIContent) Draws a property in the inspector using a given label.
void EndDrawPropertyTree(PropertyTree) Ends drawing a property tree, and handles management of undo, as well as marking scenes and drawn assets dirty.