Skip to content

Black Screen on app using Unity #518

@TakNof

Description

@TakNof

SPECIFIC ISSUE ENCOUNTERED

Black Screen appears when looking at UI Canvas in Unity

SMARTPHONE (please complete the following information):

  • Device: [Xiaomi Redmi Note 13 (Not known if the error occurs in other devices)]
  • OS
    • [X ] Android
    • iOS
  • OS version [15]

STEPS TO REPRODUCE THE ISSUE

  1. Start a new project
  2. Follow all steps shown in the docs to install the package.
  3. Make a player with all the configs shown in the demo scenes.
  4. Set a GameObject with the Cardboard Startup Script.
  5. On Project Settings use as Render Pipeline Asset the Mobile_RPAsset
  6. Disable Depth Texture in the URP Asset.
  7. Enable Atialiasing MSAA in the URP Asset.
  8. Set some UI canvases, whether WorldSpace or Screen Space
  9. Make a build to mobile.
  10. The screen will be black whenever you look at UI elements, even when the view is not blocked by any object, the "VR interface" dissapears. You can tell due the Google Cardboard icons and white line in the middle dissapearing.or a clearer look up to the error, use World Space canvases, on that way you can see how it happens whenever you turn the camera towards the UI

EXPECTED BEHAVIOR

The user should be seeing at the world and its UI elements without issues.

VERSIONS USED

Google Cardboard XR Plugin for Unity 1.31.0
Unity URP 6000.2.10f1

  • Select in which graphics API you can reproduce the bug.
    • OpenGL ES2
    • [ X] OpenGL ES3
    • Metal

LINK TO A REPOSITORY WITH CODE TO REPRODUCE THE BUG

None

SCREENSHOTS

Image
When looking at UI

Image
When not looking at UI

ADDITIONAL CONTEXT

This issue was not happening previously on Unity 6000.0.34f1 and Google Cardboard XR Plugin for Unity 1.29.0, I updated both and this error started to happen, the console does not give any clue of what is going on with the app, the error goes undetected.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions