Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

No root motion in WebGL build

Discussion in 'Unity 5 Pre-order Beta' started by WendelinReich, Nov 6, 2014.

  1. WendelinReich

    WendelinReich

    Joined:
    Dec 22, 2011
    Posts:
    228
    I created a very simple test-scene to isolate this problem: one character (generic rig) on a simple plain, with an Animator controller that defaults to a simple walk animation with root motion. None of the gameobjects have any custom scripts. In the editor and in my Android builds, the character moves forward as expected. But in WebGl builds, the character is animated in-place; no root motion is applied.

    Is this a known issue, or should I file a bug report?
     
  2. GabrieleUnity

    GabrieleUnity

    Unity Technologies

    Joined:
    Sep 4, 2012
    Posts:
    116
    Hello Wendelin,

    please file a bug report with the repro case attached. We will look at it immediately and you can expect a fix in one of the upcoming betas.

    Thanks,
    Gabriele
     
    WendelinReich likes this.
  3. WendelinReich

    WendelinReich

    Joined:
    Dec 22, 2011
    Posts:
    228
    Submitted. Turns out, the error occurs only when the current Animator state has a StateMachineBehavior attached, and only in WebGL!
     
  4. GabrieleUnity

    GabrieleUnity

    Unity Technologies

    Joined:
    Sep 4, 2012
    Posts:
    116
    Great, thank you!