- Home /
{Android} {Unity 5.3.1f1} The UI Mask Component is pissing me off...
The UI Mask is being buggy :/ It always works when i first run the game, then when i close it and open it back it shows pieces of it outside the mask. But only when i test it on android, in debug it works...
What should i do? I'm so frustrated...
Can you highlight the problem in your images? Try check the anchors.
You change the layout in script? if so you gonna need to call LayoutRebuilder.$$anonymous$$arkLayoutForRebuild see here: http://docs.unity3d.com/ScriptReference/UI.LayoutRebuilder.html
Nvm, i added a camera to the scene and it fixed itself. Thanks anyway. :)
Answer by TheFloatingSheep · Jan 17, 2016 at 11:53 AM
I just added a camera to the scene and now it seems to work properly.
I've had a similar issue with masks not working on android devices. I'm using Unity 5.3.4f1 to make a UI only mobile game (every component is a UI component since I don't need anything more than that). Upon adding a camera to the top of the Hierarchy tree (just dropped it there at the top) it suddenly works fine! Wtf... Still though, thanks a lot for this :)
Your answer
Follow this Question
Related Questions
Unity 4.6 UI Scroll Rect items images become invisible when OnApplicationPause(true) 0 Answers
Draw a line from finger game for mobile 0 Answers
New UI Mask Works Wrong 0 Answers
Android Snackbar InflateException 0 Answers
Android - Inexplicable Lag 1 Answer