UIToolkitDropdownHelper Class
- Namespace
- SatorImaging.UnityFundamentals
public static class UIToolkitDropdownHelper
- Inheritance
-
UIToolkitDropdownHelper
Remarks
NOTE: Enum value MUST start from 0 and increment by 1.
Methods
- Initialize<T>(DropdownField, string?)
Initialize
.choices
and then set value without notify.
- RegisterCallbackAsEnum<T, TState>(VisualElement, Action<EventBase, T, TState>, TState, bool)
Register change event as enum value. Note that callback delay is required if callback initiates GUI value update or layout animation.