文档

Unity Engine

Unity Engine

PreventDefault()

Indicates whether the default actions are prevented from being executed for this event.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
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()