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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “UnityException: GetInvalidFilenameChars” errors are thrown, and the Overlay Save Preset button becomes unusable when entering Play Mode with a shortcut while Overlay Save Preset window is opened
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
- VFX Asset icon blends in with highlight color when selected in Search window with Editor theme set to light
- Prefab Override is still possible when Prefab Source has the same field values as Override
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.