Class InspectorElement
Makes an element that can generate a UI hierarchy for a given object. Inspector types deriving from Inspector<T> will be considered for the root target only. When generating the UI hierarchy for properties of the target, inspector types deriving from PropertyInspector<TValue> and PropertyInspector<TValue, TAttribute> will be considered.
Inheritance
InspectorElement
Implements
Inherited Members
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.Properties.UI
Assembly: Unity.Properties.UI.Editor.dll
Syntax
public sealed class InspectorElement : BindingContextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable
Methods
MakeWithValue<TValue>(TValue)
Creates a new instance of InspectorElement with the provided target value.
Declaration
public static InspectorElement MakeWithValue<TValue>(TValue value)
Parameters
Type | Name | Description |
---|---|---|
TValue | value | The target. |
Returns
Type | Description |
---|---|
InspectorElement | The new instance. |
Type Parameters
Name | Description |
---|---|
TValue | The target type. |