Version 3.3.1.2

ImguiElementUtils class

Namespace: Sirenix.OdinInspector.Editor.Internal.UIToolkitIntegration
Assembly: Sirenix.OdinInspector.Editor
public static class ImguiElementUtils
Inheritance
  • System.Object
  • ImguiElementUtils

Fields

IsSupported
public static readonly bool IsSupported

Methods

EmbedVisualElementAndDrawItHere(OdinImGuiElement)
public static Rect EmbedVisualElementAndDrawItHere(OdinImGuiElement element)
Parameters
OdinImGuiElement element

Returns
UnityEngine.Rect

EmbedVisualElementAndDrawItHere(OdinImGuiElement, GUIContent)
public static Rect EmbedVisualElementAndDrawItHere(OdinImGuiElement element, GUIContent label)
Parameters
OdinImGuiElement element

UnityEngine.GUIContent label

Returns
UnityEngine.Rect

GetAllStyleSheets(VisualElement)
public static IEnumerable<StyleSheet> GetAllStyleSheets(VisualElement e)
Parameters
UnityEngine.UIElements.VisualElement e

Returns
System.Collections.Generic.IEnumerable<UnityEngine.UIElements.StyleSheet>

GetImGUILayoutRectForElement(OdinImGuiElement)
public static Rect GetImGUILayoutRectForElement(OdinImGuiElement element)
Parameters
OdinImGuiElement element

Returns
UnityEngine.Rect

MeasureSizeOfVisualElement(VisualElement, VisualElement, Single)
public static Rect MeasureSizeOfVisualElement(VisualElement targetContainer, VisualElement element, float width)
Parameters
UnityEngine.UIElements.VisualElement targetContainer

UnityEngine.UIElements.VisualElement element

System.Single width

Returns
UnityEngine.Rect

RegisterSerializedPropertyChangeEventCallback(PropertyField, Action<SerializedProperty>)
public static void RegisterSerializedPropertyChangeEventCallback(PropertyField propertyField, Action<SerializedProperty> callback)
Parameters
UnityEditor.UIElements.PropertyField propertyField

System.Action<UnityEditor.SerializedProperty> callback