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

[UWP] Animators with write defaults on behave differently in Build than in editor

Discussion in '2018.3 Beta' started by Dark-1-Games, Oct 30, 2018.

  1. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    101
    We have noticed an issue when trying to port our game to use LWRP across all platforms. Since LWRP doesn't build UWP properly on 2018.2 due to an Issue, i was forced to switch to the beta. Now LWRP works, but we have an issue with the animators behaving differently in the UWP build. The issue seems to occur on animations which don't have keyed positions on objects that are animated further on.

    I have reported this bug: Case 1095938
    Here's a minimal reproduction project: https://drive.google.com/file/d/1Uqv0IAz9h8kkbY3Q6Jt0Ex3HPJlLNGOe/view?usp=sharing
     
  2. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    101
    We were able to reproduce the issue in versions from beta 1 to beta 7.
    Here are gifs outlining the issue:

    First is in editor:


    This is in UWP build:


    The Z position in the "Start" state with no animation and write defaults set to "on" is messed up for the moving top and bottom objects.
     
  3. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    101
    I just noticed the issue only occurs when building on the "Master" configuration in VS
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    We will take a look, thanks for the report!
     
  5. Dark-1-Games

    Dark-1-Games

    Joined:
    Mar 26, 2014
    Posts:
    101