Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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.