Version: 2020.3
Focus events
Keyboard events

Input events

The InputEvent is sent when the user submits text into a text field. This event updates when there is a change in focus, such as a PointerCaptureOutEvent that on a touch screen.

For default keyboard inputs, the inputEvent fires for each keystroke. InputEvent doesn’t fire when the TextField populates from an indirect source, such as an automated script.

Event 설명 Trickles down Bubbles up Cancellable
InputEvent Sent when data is input to a visual element, typically a control.

Unique properties

previousData: The former data.

newData: The new data.

Event list

InputEvent

Event sent when data is input to visual elements that implement TextInputBase. This event differs from ChangeEvent in that it’s sent for every input event in the control, even if the value of the control hasn’t changed.

target: The element where the input occurred.

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