UI Toolkit ComponentUI Toolkit Component
UI Toolkit ComponentUI Toolkit Component
  • Docs
  • API
  • Changelog
  • Unity Asset Store
  • Bug report
  • SoyWar.UIToolkit
    • IUIToolkitEvent<TElement>
      • Count
      • SearchFrom
      • Selector
      • Target
    • Selector
      • AtIndex
      • AtLastIndex
      • Builder
      • Clone
      • Exists
      • Find
      • GetFirst
      • GetLast
      • Match
      • Parse
    • Selector.MatchCombinator
    • Selector.SelectorBuilder
      • AddClassNames
      • AddPseudoClass
      • AddSubSelector
      • Adjacent
      • Build
      • Children
      • Clone
      • Descendants
      • SetName
      • SetType
      • Siblings
      • Where
    • UIToolkitComponent
      • AddCustomStyles
      • Count
      • Document
      • ForceElementsUpdate
      • OverrideHost
      • RemoveCustomStyles
      • SearchFrom
      • Selector
      • SetSelectorFromText
      • Target
      • Validate
    • UIToolkitComponent.TypeSearch
    • UIToolkitComponent.TypeTarget
    • UIToolkitComponent<TElement>
      • GetEnumerator
      • OffEvent
      • OnEvent
      • Set
      • Unset
      • implicit operator
    • UIToolkitEnumerator<TElement>
      • Current
      • Dispose
      • MoveNext
  • SoyWar.UIToolkit.Editor.Component
    • BaseVerticalCollectionViewComponentEditor
    • ButtonComponentEditor
    • ListViewComponentEditor
    • TextComponentEditor
    • UIToolkitComponentEditor
      • AddEventTo
      • AddEventToFirstPosition
      • AddEventToLastPosition
      • EventCount
      • RemoveEvent
      • RemoveEventFrom
      • RemoveEventFromFirstPosition
      • RemoveEventFromLastPosition
    • ValueComponentEditor
  • SoyWar.UIToolkit.Editor.GameObject
    • BoundsFieldEditor
      • CreateGameObject
    • BoundsIntFieldEditor
      • CreateGameObject
    • ButtonEditor
      • CreateGameObject
    • DoubleFieldEditor
      • CreateGameObject
    • DropdownFieldEditor
      • CreateGameObject
    • EnumFieldEditor
      • CreateGameObject
    • FloatFieldEditor
      • CreateGameObject
    • FoldoutEditor
      • CreateGameObject
    • GroupBoxEditor
      • CreateGameObject
    • Hash128FieldEditor
      • CreateGameObject
    • IMGUIContainerEditor
      • CreateGameObject
    • IntegerFieldEditor
      • CreateGameObject
    • LabelEditor
      • CreateGameObject
    • ListViewEditor
      • CreateGameObject
    • LongFieldEditor
      • CreateGameObject
    • MinMaxSliderEditor
      • CreateGameObject
    • ProgressBarEditor
      • CreateGameObject
    • RadioButtonEditor
      • CreateGameObject
    • RadioButtonGroupEditor
      • CreateGameObject
    • RectFieldEditor
      • CreateGameObject
    • RectIntFieldEditor
      • CreateGameObject
    • ScrollViewEditor
      • CreateGameObject
    • ScrollerEditor
      • CreateGameObject
    • SliderEditor
      • CreateGameObject
    • SliderIntEditor
      • CreateGameObject
    • TemplateContainerEditor
      • CreateGameObject
    • TextFieldEditor
      • CreateGameObject
    • ToggleEditor
      • CreateGameObject
    • TreeViewEditor
      • CreateGameObject
    • UIToolkitGameObjectEditor<TComponent, TElement>
      • CreateGameObject
    • Vector2FieldEditor
      • CreateGameObject
    • Vector2IntFieldEditor
      • CreateGameObject
    • Vector3FieldEditor
      • CreateGameObject
    • Vector3IntFieldEditor
      • CreateGameObject
    • Vector4FieldEditor
      • CreateGameObject
    • VisualElementEditor
      • CreateGameObject
  • SoyWar.UIToolkit.Elements
    • BaseVerticalCollectionViewComponent<TElement>
      • ItemIndexChangedEvent
      • ItemsChosenEvent
      • ItemsSourceChangedEvent
      • SelectedIndicesChangedEvent
      • SelectionChangedEvent
    • BoundsFieldComponent
    • BoundsIntFieldComponent
    • ButtonComponent
      • CheckOnClickEvent
      • OnClick
      • OnClickEvent
    • ControlComponent<TElement, TValue>
      • CheckStateChangedEvent
      • OnStateChanged
      • OnStateChangedEvent
    • DoubleFieldComponent
    • DropdownFieldComponent
    • EnumFieldComponent
    • FloatFieldComponent
    • FoldoutComponent
    • GroupBoxComponent
    • Hash128FieldComponent
    • IMGUIContainerComponent
    • IntegerFieldComponent
    • LabelComponent
    • ListViewComponent
      • ItemsAddedEvent
      • ItemsRemovedEvent
    • LongFieldComponent
    • MinMaxSliderComponent
    • NotifyValueChangedComponent<TElement, TValue>
    • ProgressBarComponent
    • RadioButtonComponent
    • RadioButtonGroupComponent
    • RectFieldComponent
    • RectIntFieldComponent
    • ScrollViewComponent
    • ScrollerComponent
    • SliderComponent
    • SliderIntComponent
    • TemplateContainerComponent
    • TextComponent<TElement>
      • OnTextChangedEvent
      • SetText
    • TextFieldComponent
    • ToggleComponent
    • TreeViewComponent
    • ValueComponent<TElement, TValue>
      • OnValueChangedEvent
      • SetValue
    • Vector2FieldComponent
    • Vector2IntFieldComponent
    • Vector3FieldComponent
    • Vector3IntFieldComponent
    • Vector4FieldComponent
    • VisualElementComponent
  • SoyWar.UIToolkit.Events
    • AddClassNameEvent
    • AttachToVisualElementEvent
    • ClassNameChangedEventBase<T>
      • ClassName
      • GetPooled
    • DetachFromVisualElementEvent
    • HierarchyChangedEvent
    • HierarchyChangedEventBase<T>
      • GetPooled
      • Parent
    • NameChangedEvent
    • NameChangedEventBase<T>
      • GetPooled
      • NameChangedEventBase
      • NewValue
      • OldValue
    • RemoveClassNameEvent
    • VisualElementChangedEventBase<T>
      • Child
      • FromParent
      • GetPooled
      • ToParent
      • VisualElementChangedEventBase
  • SoyWar.UIToolkit.Extensions
    • HierarchicalPosition
    • UIDocumentExtensions
      • AtIndex
      • AtLastIndex
      • Exists
      • Find
      • GetFirst
      • GetLast
      • Match
    • UIToolkitEventExtensions
      • Count
      • IsElementActive
      • SetPostProcessingFilterCallback
    • VisualElementExtensions
      • AtIndex
      • AtLastIndex
      • Exists
      • Find
      • GetContentContainer
      • GetFirst
      • GetHierarchicalPosition
      • GetLast
      • HasHierarchicalPosition
      • Match
      • PlaceToFirstPosition
      • PlaceToLastPosition
      • PlaceToPosition
  • SoyWar.UIToolkit.PseudoClasses
    • ActivePseudoClass
    • BlurPseudoClass
    • CheckedPseudoClass
    • ChildPseudoClass
      • Check
      • GetChild
    • DisabledPseudoClass
    • EmptyPseudoClass
    • EnabledPseudoClass
    • EventPseudoClass<TOnEventType, TOffEventType>
      • CheckOffEvent
      • CheckOnEvent
      • TrickleDown
    • FirstChildPseudoClass
    • FirstOfTypePseudoClass
    • FocusPseudoClass
    • HasNotPseudoClass
    • HasPseudoClass
    • HostContextPseudoClass
    • HostPseudoClass
    • HoverPseudoClass
      • CheckEvent
    • IsPseudoClass
    • LastChildPseudoClass
    • LastOfTypePseudoClass
    • NotPseudoClass
    • NthChildPseudoClass
    • NthLastChildPseudoClass
    • NthLastOfTypePseudoClass
    • NthOfTypePseudoClass
    • OnlyChildPseudoClass
    • OnlyOfTypePseudoClass
    • PseudoClass
      • Add
      • AddManipulatorCallback
      • Check
      • Clone
      • CreateManipulator
      • GetValueString
      • Host
      • PointerInside
      • Validate
      • Value
    • PseudoClassManipulator
      • AddEventCallback
      • AddPostRegisterCallback
      • AddPostUnregisterCallback
      • AddPreRegisterCallback
      • AddPreUnregisterCallback
      • Check
      • CheckUpdate
      • PseudoClass
      • PseudoClassManipulator
      • Roots
      • SearchFrom
    • SelectorPseudoClassManipulator<TElement>
      • GetEnumerator
      • OffEvent
      • OnEvent
      • SelectorPseudoClassManipulator
    • SelectorPseudoClass<TElement>
      • ReverseEvent
      • Type
    • SelectorPseudoClass<TElement>.TypeSelector
    • UncheckedPseudoClass
Generated by DocFX
(with DiscordFX + SingulinkFX)

Search Results for

    Method AddEventCallback

    AddEventCallback<TEventType>(Predicate<VisualElement>, EventCallback<TEventType>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Predicate<VisualElement>predicate

    Filter theVisualElementthat can use the callback.

    EventCallback<TEventType>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(EventCallback<TEventType>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    EventCallback<TEventType>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Predicate<VisualElement>, Action, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Predicate<VisualElement>predicate

    Filter theVisualElementthat can use the callback.

    Actioncallback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Action, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Action callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Actioncallback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Predicate<VisualElement>, Action<PseudoClassManipulator>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action<PseudoClassManipulator> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Predicate<VisualElement>predicate

    Filter theVisualElementthat can use the callback.

    Action<PseudoClassManipulator>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Action<PseudoClassManipulator>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Action<PseudoClassManipulator> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Action<PseudoClassManipulator>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Predicate<VisualElement>, Action<PseudoClassManipulator, TEventType>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action<PseudoClassManipulator, TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Predicate<VisualElement>predicate

    Filter theVisualElementthat can use the callback.

    Action<PseudoClassManipulator, TEventType>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register

    AddEventCallback<TEventType>(Action<PseudoClassManipulator, TEventType>, TrickleDown)

    Adds an event callback to the current manipulator.

    Declaration
    public void AddEventCallback<TEventType>(Action<PseudoClassManipulator, TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
    Parameters
    TypeNameDescription
    Action<PseudoClassManipulator, TEventType>callback

    Callback to use for the registered event

    TrickleDownuseTrickleDown

    The direction in which the event should be called.

    Type Parameters
    NameDescription
    TEventType

    Type of event to register