Jump to content

How do I add a callback event


photo

Recommended Posts

image.png.1ff870c655eb01318c474ac6474b8070.png

 

As shown in the figure above,I add callback for my button in xml ui file.But How do I add a callback event in C#?

image.png.00e233fc08f5a4240f78ee69b2b01b99.png

It would be wrong to write it this way.

Edited by hongguang.li
Link to comment

I check the following sample from C#: <UnigineSDK>/source/csharp/samples/Api/Widgets/UserInterface 

Is that the only way?As shown in the figure below

image.png.c17503b3f197ea8780f565c903702dd1.png

 

Is that still necessary? As shown in the figure below

image.png.07fd92e618ade53beb910a720d7aba9e.png

Link to comment
7 hours ago, silent said:

hongguang.li

You can check the following sample from C#: <UnigineSDK>/source/csharp/samples/Api/Widgets/UserInterface that shows how to parse .ui files and add callbacks (based on MenuBox and EditText widgets).

Thanks!

I check the following sample from C#: <UnigineSDK>/source/csharp/samples/Api/Widgets/UserInterface 

Is that the only way?As shown in the figure below

 

image.png.c17503b3f197ea8780f565c903702dd1.png.fda4d8aab5de2c0692f717c2427a5f2a.png

Is that still necessary? As shown in the figure below

image.png.07fd92e618ade53beb910a720d7aba9e.png.a506822bf22b48c485005cfd4266369a.png

Link to comment
×
×
  • Create New...