Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PreventDefault()

Indicates whether the default actions are prevented from being executed for this event.
Read time 1 minuteLast updated 6 days ago

Definition

Warning
Deprecated. 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
public void PreventDefault()