format
typescript
Control.guiEventDataclass: Control
description
Get the UI event data of the current control.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
GUIEventData | UI event data |
code example
typeScript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
let canvas = uiComponent.canvas;
let button = canvas.FindChild("Button");
button.guiEventData;