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

Bug Mesh Renderer out of place with the object

Discussion in 'WebGL' started by palms2, Feb 25, 2023.

  1. palms2

    palms2

    Joined:
    Aug 24, 2021
    Posts:
    4
    Hello, i just built a game for the platform WebGl and uploaded it in Itch.io.

    Game: https://abandola.itch.io/listen

    Everything works fine, except the place where the Mesh Renderer is. In Unity its synced with the object but in the webgl build it seems like everything is offset.

    How can i fix this?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Which unity version?
    Can you send screenshots of how it should look and how it looks?
    URP or built in?
     
  3. palms2

    palms2

    Joined:
    Aug 24, 2021
    Posts:
    4
    The version is 2.4.5

    Normal 3D build (built in i guess?).

    So basically i have a OnMouseOver function that changes the color of the object, but it doesnt work properly in the WebGL build. Some objects only change color when i place the mouse off the object (it seems they are all offaxis)

    Works perfectly fine in the Unity project and windows build.
     

    Attached Files:

  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    What is version 2.4.5? Huh?
    Unity is 2020.3.15 according to the screenshots. You could try the latest 2020.3 version, as if it's a bug it might be fixed.

    After you did that, check if it happens with different resolutions, as that might be the issue
     
  5. palms2

    palms2

    Joined:
    Aug 24, 2021
    Posts:
    4
    Thank you! i updated the unity version and now it works properly.
     
    DevDunk likes this.