hongguang.li Posted July 27, 2022 Share Posted July 27, 2022 (edited) 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#? It would be wrong to write it this way. Edited July 27, 2022 by hongguang.li Link to comment
silent Posted July 28, 2022 Share Posted July 28, 2022 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! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
hongguang.li Posted July 28, 2022 Author Share Posted July 28, 2022 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 Is that still necessary? As shown in the figure below Link to comment
hongguang.li Posted July 28, 2022 Author Share Posted July 28, 2022 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 Is that still necessary? As shown in the figure below Link to comment
silent Posted July 28, 2022 Share Posted July 28, 2022 That's the only way to do it in C#. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts