Version: 2018.1
Experimental: this API is experimental and might be changed or removed in the future.

EventBase<T0>

class in UnityEngine.Experimental.UIElements

/

継承:Experimental.UIElements.EventBase

マニュアルに切り替える

説明

Generic base class for events, implementing event pooling and automatic registration to the event type system.

Public 関数

DisposeImplementation of IDispose.
GetEventTypeIdGet the type id for this event instance.

Static 関数

GetPooledGet an event from the event pool. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent().
ReleasePooledRelease an event obtained from GetPooled().
TypeIdGet the type id for this event instance.

継承メンバー

変数

bubblesReturns whether this event type bubbles up in the event propagation path.
capturableReturn whether this event is sent down the event propagation path during the capture phase.
currentTargetThe current target of the event. The current target is the element in the propagation path for which event handlers are currently being executed.
dispatchReturn whether the event is currently being dispatched to visual element. An event can not be redispatched while being dispatched. If you need to recursively redispatch an event, you should use a copy.
flagsFlags for the event.
imguiEventThe IMGUIEvent at the source of this event. This can be null as not all events are generated by IMGUI.
isDefaultPreventedReturn true if the default actions should not be executed for this event.
isImmediatePropagationStoppedReturn true if StopImmediatePropagation() has been called for this event.
isPropagationStoppedReturn true if StopPropagation() has been called for this event.
originalMousePositionThe original mouse position of the IMGUI event, before it is transformed to the local element coordinates.
propagationPhaseThe current propagation phase.
targetThe target for this event. The is the visual element that received the event. Unlike currentTarget, target does not change when the event is sent to elements along the propagation path.
timestampThe time at which the event was created.

Public 関数

PreventDefaultCall this function to prevent the execution of the default actions for this event.
StopImmediatePropagationImmediately stop the propagation of this event. The event will not be sent to any further event handlers on the current target or on any other element in the propagation path.
StopPropagationStop the propagation of this event. The event will not be sent to any further element in the propagation path. Further event handlers on the current target will be executed.

Protected 関数

InitReset the event members to their initial value.

Static 関数

RegisterEventTypeRegister an event class to the event type system.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961