Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InspectorElement

Create a VisualElement inspector from a SerializedObject.
Read time 7 minutesLast updated 8 days ago

Definition

public class InspectorElement : BindableElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable

Remarks

Upon Bind(), the InspectorElement will generate PropertyFields inside according to the SerializedProperties inside the bound SerializedObject.

Static Fields

Value

Description

customInspectorUssClassNameUSS class name of custom inspector elements in elements of this type.
debugInternalVariantUssClassNameUSS class name of elements of this type, when they are displayed in debug internal mode.
debugVariantUssClassNameUSS class name of elements of this type, when they are displayed in debug USS mode.
iMGUIContainerUssClassNameUSS class name of IMGUI containers in elements of this type.
iMGUICustomVariantUssClassNameUSS class name of elements of this type, when they are displayed in IMGUI custom mode.
iMGUIDefaultVariantUssClassNameUSS class name of elements of this type, when they are displayed in IMGUI default mode.
iMGUIInspectorVariantUssClassNameUSS class name of elements of this type, when they are displayed in IMGUI inspector mode.
noInspectorFoundVariantUssClassNameUSS class name of elements of this type, when no inspector is found.
uIECustomVariantUssClassNameUSS class name of elements of this type, when they are displayed in UIElements custom mode.
uIEDefaultVariantUssClassNameUSS class name of elements of this type, when they are displayed in UIElements default mode.
uIEInspectorVariantUssClassNameUSS class name of elements of this type, when they are displayed in UIElements inspector mode.
ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

InspectorElement()Initialized a new instance of InspectorElement.
InspectorElement(UnityEditor.Editor)Initialized a new instance of InspectorElement for the specified Editor.
InspectorElement(UnityEditor.SerializedObject)Initialized a new instance of InspectorElement for the specified SerializedObject.
InspectorElement(UnityEngine.Object)Initialized a new instance of InspectorElement for the specified Object.

Static Methods

Method

Description

FillDefaultInspectorAdds default inspector property fields under a container VisualElement.

Inheritance

Inherited Members