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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

First Person Character Controller keeps walking

Discussion in 'WebGL' started by Matt_at_mindtrigger, Feb 10, 2016.

  1. Matt_at_mindtrigger

    Matt_at_mindtrigger

    Joined:
    Jan 20, 2014
    Posts:
    57
    Hi,

    a client has brought to my attention that unlike in the WebPlayer when the browser-tab loses focus while you were walking and you click back on it the WebGL First Person Controller will then continue to walk endlessly until you press the key for walking in that direction again to stop this. The key somehow gets "locked".

    Now in the WebPlayer upon regaining focus the controller would very quickly slow down and ultimately stop walking.

    Any idea on why they behave differently and is there a way to tell the controller in WebGL to stop walking?


    Regards
    Matt
     
  2. prestonmatterport

    prestonmatterport

    Joined:
    May 7, 2015
    Posts:
    28
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067