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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.