ly.wu Posted June 3, 2020 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.
morbid Posted June 3, 2020 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
ly.wu Posted June 3, 2020 Author 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
morbid Posted June 3, 2020 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
Recommended Posts