Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Case 1291989 IOS - 2 Overlapping Canvas with graphic raycasters block raycasts on worldspace UI

Discussion in 'UGUI & TextMesh Pro' started by ROBYER1, Nov 25, 2020.

  1. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,449
    I found that when having two overlapping canvases with graphic raycasters on them, graphic raycasters on world space UI viewed through the canvas work intermittently on IOS. This same setup works fine on Android though.

    This is a real issue in the AR Foundation samples where there is a separate canvas for the AR Guidance (showing AR usage prompts) when you make a separate canvas for your own UI.

    This issue is directly caused by Graphic Raycaster components on screen space Canvas gameobjects interfering with worldspace UI graphic raycasters on IOS only, on Android I can have as many Screen Space canvas + graphic raycasters in the scene as I like and Worldspace UI buttons work fine. I believe this is a platform specific bug.

    I have reported this issue here:
    (Case 1291989) [UI][AR Foundation] Worldspace UI buttons work fine on Android but intermittently on IOS while in AR