In unity 2d UI I have switched the canvas scaler into scale with screen size mode.
For those components added into the canvas manually the scaler works well. But for those added by scripts, even from the same prefab, the scaler does not work.
The appearance of the script-added component depends on the resolution setup, and mostly looks differently to those added manually, like following:
[53031-屏幕快照-2015-08-29-上午13233.png|53031]
The first button is added manually and the rests are adde by scripts. I’ve set the button layout to be horizontally expanded so they should have fit the screen width but didn’t. Anyone have ideas this could be a bug or did I set anything wrong?
i might make a new project so ill tell you if i need help ok :D
– Curia