Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Collider Placement different from PC Build

Discussion in 'Web' started by StevenyJames, Nov 9, 2020.

  1. StevenyJames

    StevenyJames

    Joined:
    May 30, 2019
    Posts:
    1
    Hello,

    I'm converting over a project from a PC build to a WebGL build and have a problem that I havent experienced before.

    The game consists basically of pointing and clicking on planes in a 3D world (its for eductational purposes). In the PC build, it works perfectly, the prompt to interact shows up when you mouse over the plane and clicking on it brings up the correct information.However, when exporting it for WebGL and testing it out everything looks as it should, but when mousing over the planes the interaction prompts sometimes dont appear. Upon further inspection I realise that the game thinks these planes are somewhere else and have shifted and gotten smaller (despite still looking like they should on screen. I can't for the life of me figure out how or why.

    If it helps I can upload both builds to a MEGA folder and share to see what I mean.

    If anyone has any idea Id be greatly appreciative.
     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    951
    There have been some reports about generating world space rays from mouse cursor coordinates being buggy in WebGL builds. I have asked the users to report a bug with a test case, but so far nobody has done so. If you are able to reduce the project to a small test case, we would appreciate a bug report very much!

    Which Unity version are you on? Are you able to test latest Unity 2021.1 alpha?