ly.wu Posted June 3, 2020 Share Posted June 3, 2020 hello, how can i get the window resize event,i need change the ui widget height or width when the rendering window resized. anybody know how to do that in c# script. thanks. Link to comment
morbid Posted June 3, 2020 Share Posted June 3, 2020 Hello, I think you're looking for the App Class. It has getWidth/getHeight methods. https://developer.unigine.com/en/docs/2.11/api/library/engine/class.app?rlang=cs 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
ly.wu Posted June 3, 2020 Author Share Posted June 3, 2020 thanks for your reply i know this function in app class. you mean is check window size in update function every frame? is there has a callback function like onResiz ? thanks Link to comment
morbid Posted June 3, 2020 Share Posted June 3, 2020 No, there's no callback possible for this. You'll have to check window size in the update. 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
Recommended Posts