Search Issue Tracker

Won't Fix

Votes

0

Found in

5.3.4f1

Issue ID

782371

Regression

No

Prefabs values not applied to game object after switching between platforms

Serialization

-

Switching compile defines for different platforms can cause inspector to become out of sync with the project files.

Steps to Reproduce
-----------------------
1.Download the tiny reproduction project (782371_SwitchingCompileDefines.rar) attached to the comments below.
2.Open the scene 'test' if not already open.
3.Drag the 'Cube' prefab from the 'Project' pane in to the Hierarchy.
4.Save the scene.
5.Select the 'Cube' object in the Hierarchy.
6.Note the 'test Script' component on the Cube prefab object contains two variables, both with values assigned. These variables are only available in PC-Standalone builds.
7.Open the Build Settings and switch platform from PC-Standalone to any other available platform.
8.Note that the variables disappear from the inspector as expected.
9.Switch platform back to PC-Standalone

Result:
After switching back to PC-Standalone the variables are restored, but the values are incorrect. They have reverted to 0 on both the object in the scene and the source prefab.

Restarting the editor returns the prefab and scene object variables to their correct values.

Reproduced in:
5.6.0a5 (39b2fb1e9eea)
5.5.0f3 (38b4efef76f0)
5.4.3p2 (81dd4868cb4c)
5.3.7p2 (c7f50ac202bd)

  1. Resolution Note (2018.3.X):

    We really appreciate your contribution to the Unity product. Thank you for reporting this issue. We take every case submitted to us seriously by investigating the impact on you, our customer, as well as the impact it may have on the engineering and experience of our product.

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this issue.

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.