Method group is Obsolete

EventBase.PreventDefault

Obsolete Use StopPropagation and/or FocusController.IgnoreEvent. Before proceeding, make sure you understand the latest changes to UIToolkit event propagation rules by visiting Unity's manual page https://docs.unity3d.com/Manual/UIE-Events-Dispatching.html.

Declaration

public void PreventDefault();

Description

Indicates whether the default actions are prevented from being executed for this event.


Did you find this page useful? Please give it a rating: