Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

EventCallbackDefinition<T0>

struct in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An object that can be registered on elements of the specified type to react to any event type.

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.

Additional resources: EventCallback, EventCallbackDefinition, EventCallbackGroup<T0>

Public Methods

Method Description
As Converts this callback to a more constrained callback type.
Register Adds this callback's event handler to the given element.
Unregister Removes this callback from the given element.

Operators

Operator Description
EventCallbackDefinition<TElement> Converts a given callback to a more constrained callback type.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961