Question by
mixpro · Aug 01, 2016 at 05:59 AM ·
canvasresolutiondisplayfit
Fit Canvas in camera on editors screen
Hi, i am trying to create a UI element (panel containing a text as child) inside a canvas at runtime . when running the app on real android device i can see the UI element complete . but when running in editors displays its cut and bigger than the screen . for each display resolution in editor i get different results see attached pics to get the idea .
why is that ? this is how i create the element :
question = (Question)Instantiate (currentLevel.question,createPos,createRot);
question.transform.SetParent (questionCanvas.transform);
![alt text][1]question.transform.localPosition = new Vector3 (0,0,0);
[1]: /storage/temp/75225-pc.png
mobile.png
(193.9 kB)
pc.png
(40.1 kB)
Comment
Your answer
Follow this Question
Related Questions
Change Resolution with Script 0 Answers
How to change resolution according to resolution changes in OS? 0 Answers
Fit an overlay canvas to the same position in all resolutions 1 Answer
UI Appear not appearing after build 0 Answers
Canvas scale 0 Answers