- Home /
Question by
Efril · Nov 06, 2016 at 01:00 PM ·
uicanvasresolution
CanvasScaler force to rescale at runtime
Hi all. I designed a Unity UI control which have few of child UI game objects initially disabled in Awake() method as these game objects should appear only when user clicks something. The problem is then I set CanvasScaler.uiScaleMode to ScaleMode.ScaleWithScreenSize these disabled game objects remains in their original size and when they appear they have much greater size than the rest UI game objects. I understand than CanvasScaler can't find disabled game objects to do its work. So I should force CanvasScaler to rescale the content of UI Canvas myself. But I can't find how to do this.
Thanks in advance.
Comment