Frustrating problem with UI canvas (lines of canvas flicker around the edges of screen in game!!!)
Hello everyone, i am making the simple typical 2d game (walking towards right also unity version 5.4) for practice.I had some movement going on,on my player so i decided to put some objects to get score.After i added the canvas all kinds of problems started.
soooo, as you can see, around the edges of the game, the white lines of the canvas appear in-game and when running the game they flicker.On the right side on the setting i have the match width/height at 0 to magnify it so everyone can see it if i slide it all the way to 1 the problem stays only on the left/right edge, top/bottom are fine. I also tried make the canvas screen space overlay but as the game runs the canvas or the ui element of it are also moving faster than the camera. In this particular on the canvas is parented to the camera. Here is also the script i use to move the camera: ` public float speed=2f; public bool ChooseSideToMove=true; //true for right false for left void Update () { if(ChooseSideToMove) transform.Translate(Vector3.left speed*Time.deltaTime); else transform.Translate(Vector3.right speed*Time.deltaTime);
} So i either see flickering lines or the canvas tends to move faster than the camera. I realy hope someone has an idea what might seem to be the problem.
Answer by Thetrip · Oct 03, 2016 at 01:13 PM
oh god 2 days i hit my head on the wall to find the answer and as soon as i make a post i randomly see i had gizmos turnen on >.<.....
Sigh...
Thanks, was mucking around with drawcasts and forgot about gizmos. Was going crazy.
Answer by Subhanshu · Apr 05, 2017 at 03:20 PM
Hahahahaha.... Thanks For The Question and Answer. I had a same problem, Thank you once again. And I feel pitty for your head. Lolz!
Answer by brionnach80 · Jun 24, 2017 at 02:51 PM
Thank you, had me confused too until I read this :-)
Your answer
Follow this Question
Related Questions
Hololens HUD 0 Answers
Prevent World Space canvas render mode to overlay other game objects 0 Answers
Camera ProjectionMatrix and Canvas Scaling - different results in 2018.3 0 Answers
Sprite in Canvas not projected correctly in Maximum playmode 0 Answers
AR-like Camera Effect, How to Achieve Custom Shaped Culling Masks for Camera? 1 Answer