Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question [WebGL] Event System not registering raycast on UI

Discussion in 'UGUI & TextMesh Pro' started by sk8terboy4, Oct 18, 2020.

  1. sk8terboy4

    sk8terboy4

    Joined:
    Mar 29, 2013
    Posts:
    29
    For a webGL build, I am unable to click on any UI elements. I am able to in the editor & Mac builds. In the webGL build, there are no errors so I think this may be a bug. I have also tried in Firefox which lead to the same issue. I've tried searching for answers and were unable to find any that solves my problem. Here are some screenshots of what I have set up.

    Unity version: 2019.4.0f1
    Using the old input system

    Here I have the debug output for the event system object. When I hover over any UI elements, the "current raycast" should be set to that element, but it is not the case for WebGL. I do see the "position" vectors being updated though.


    Screen Shot 2020-10-17 at 9.55.06 PM.png
    Here is what it shows in the editor which is correct.

    Screen Shot 2020-10-17 at 9.56.53 PM.png
    Here is the Canvas:
    Screen Shot 2020-10-17 at 9.59.13 PM.png
    Here is the Event System
    Screen Shot 2020-10-17 at 9.59.24 PM.png

    Thank you for the help.
     
  2. mnsmuts2

    mnsmuts2

    Joined:
    May 27, 2019
    Posts:
    1
    Did you solve this?
     
  3. sk8terboy4

    sk8terboy4

    Joined:
    Mar 29, 2013
    Posts:
    29
    No, I did not
     
  4. sandstedt

    sandstedt

    Joined:
    May 24, 2015
    Posts:
    67
    Need help with this too. Doesn't work with the new Input System either.