Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.1p1
Issue ID
954973
Regression
No
SerializedProperty.hasMultipleDifferentValues never goes back to true after being false
Reproduction steps:
1. Open the attached project "New Unity Project.zip";
2. Select both the Main Camera and Directional Light in the Hierarchy: Inspector shows dashes for their position because the position is different;
3. Execute menu item Test/Randomise Positions: Inspector still shows dashes;
4. Use the Transform Context menu to reset the positions: Inspector shows 0, 0, 0;
5. Execute menu item Test/Randomise Positions.
Actual results: Inspector shows the new position of one of the objects, even if their position is different.
Expected results: There should be dashes shown in the position field.
Reproduced on: 5.5.3p3, 5.6.3p4, 2017.1.1p3, 2017.2.0f2, 2017.3.0b3.
Note: After repeating 1-5 steps and selecting the objects individually shows that their positions are different, and re-selecting both of them shows dashes again.
Comments (2)
-
liuliu20036
May 30, 2018 02:41
I find the SerializedProperty.hasMultipleDifferentValues is always false. Which condition can SerializedProperty.hasMultipleDifferentValue change to true?
-
liuliu20036
May 30, 2018 02:38
Hey, I can not find the attached project "New Unity Project.zip". So where can I download it ? Thank you!
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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note:
Thank you for the report.
Based on the current SerializedProperty architecture it is hard to change behaviour without regressing performance. Unity.Properties is planned to solve these problems from the start. So we won't fix the issue in SerializedProperty directly.