- Home /
Question by
BDX777 · Jan 19, 2015 at 12:58 PM ·
uiaspect ratioaspect
UI Position Correction for worldspace UI?
Hello, I am creating fancy UI elements that use worldspace, but I'm worried that non-widescreen users will have problems with the UI being cut-off. Is there some way to detect the aspect ratio so I can change the UI object's position in a script?
Comment
Best Answer
Answer by alok-kr-029 · Jan 19, 2015 at 01:15 PM
TO dedect the aspect ratio you can use
public Camera camera; void Start() { print(camera.aspect); }