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
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)
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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
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.