유니티 개발 관련
UI toolkit canvas size fitting [resolved]
DualQuaternion
2023. 5. 3. 10:50
1. Problem
* The difference between drawings of ui builder and rendering results in the game view.
The above image is my ui builder image. I set the canvas size as 1920x1080 and gameview also set as 1920x1080
The above image is the game view image. It looks the buttons are bigger and the button with "button" label in the middle is not shown on the game view.
2. Solution
* go to the ui document.
and then open UI_Panel in the UI Document inspector
Check the scale mode. Constant Physical Size is set as default.
Change it to the constant pixel size.
this is the result.
3. Conclusion
The probelm was in the UI_Panel's scale mode. Check the scale mode and then enjoy.