ドキュメント

Unity Engine

Unity Engine

EventCallbackDefinition<TElement>

An object that can be registered on elements of the specified type to react to any event type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public readonly struct EventCallbackDefinition<TElement> where TElement : VisualElement

Remarks

The same callback instance can be registered on multiple different elements, resulting in effective memory sharing. If the element instance is needed by the callback code, an optional argument can be used to provide it.

Methods

Method

Description

AsConverts this callback to a more constrained callback type.
RegisterAdds this callback's event handler to the given element.
UnregisterRemoves this callback from the given element.