Abvient E
Abvient E

Reputation: 67

Unity Android Screen Glitch

I have a bug plaguing my project that I can't find any resources to online. There are 2 scenes in my app, Menu and Game. Menu has this behavior 100% of the time, whereas Game only loads with this glitch occasionally. It appears that once it happens once in Game, it will happen multiple times consecutively, and then eventually fix itself. Here is the image of what I am seeing: Menu scene --- Game scene

There are no scripts on my Canvas that are not standard Unity scripts, everything is stock. I have also checked the logcat log via command prompt and no errors are thrown.

If you have any information as to why this glitch is happening, please let me know. I think it has something to do with Canvas settings or a missing dependency/package conflict, but no settings that I changed caused the glitch to go away. Thank you for the assistance!

Upvotes: 2

Views: 1478

Answers (2)

Abvient E
Abvient E

Reputation: 67

Answered my own question.

If you are making an AR app and have UI in the app, you NEED a regular Unity Camera in the scene alongside your AR Camera. The AR Camera should be tagged 'Main'.

For some reason, UI cannot attach to AR cameras, and while I don't understand why, the solution still works.

Upvotes: 0

vasmos
vasmos

Reputation: 2586

Change UI Scale mode of canvas to scale with screen size instead of constant pixel size

Upvotes: 1

Related Questions