Search Issue Tracker

Not Reproducible

Votes

0

Found in

2017.4

2018.4

2018.4.6f1

2019.2

2019.3

2020.1

Issue ID

1183735

Regression

No

Game Objects instantiated from Asset Bundles don't retain serialized values

Asset Bundles

-

Repro steps:
1. Open attached project and make sure build target is Android
2. Close Unity, adjust build.sh in the project's folder to appropriate Unity directory
3. Delete the bundles in Test folder and then run the build.sh script to build new ones
4. Open the project and Enter Play Mode
5. Observe the second "ShopArenaOfferView(Clone)" and "AnimatedClock" Game Objects in the scene
6. Look at the Transform component's Rotations values in the Inspector

Expected: The component has the values that were serialized in bleh.patch
Actual: The component has random values assigned

7. You can exit and re-enter Play Mode to see different values every time

Reproducible with: 2017.4.33f1, 2018.4.11f1, 2019.2.10f1, 2019.3.0b7, 2020.1.0a9

  1. Resolution Note:

    Ran WebExtract & Binary2Text on the built bundles. All transform components have 100% identical values between the two provided bundles. Rotation values are Quaternions and the editor converts those to Euler angles when displayed in the editor. This conversion process is subject to rounding issues and uses a hint field to reduce this problem in the editor. This hint field does not exist in runtime data an is uninitiaized. Thus the Quaternions to Euler conversion is inconsistent clone to clone due to this. If you switch the inspector into debug view, this shows the raw Quaternion values as (0, 0, 0, 1) across all clones.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.