Search Unity

Device motion scripts /device script problems with itch

Discussion in 'Scripting' started by UmbraDev, Feb 3, 2020.

  1. UmbraDev

    UmbraDev

    Joined:
    Jan 13, 2020
    Posts:
    1
    good afternoon, I have a problem that my game hosted on itch does not show me the animation because it marks the following error, if you can guide me how to solve it I would appreciate it.
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Are you sure it is specifically itch and not just being a WebGL build? Because the errors look like you're trying to capture device movement and orientation like a phone app, but Unity specifically doesn't support mobile devices on WebGL. So I'd be surprised if they implemented device orientation and movement detection in WebGL.