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
- [Quality Hackweek] Errors "InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread" and "NullReferenceException" shown when switching build platforms with Muse Texture package installed
- "Importer(DefaultImporter) generated inconsistent result for asset" warnings are thrown when reimporting the "URP" texture
- Material property block emits and reflects incorrect color when baked Indirect Light is used
- DLL and Render Pipeline reload execution order is incorrect when loading RenderDoc
- [Quality Hackweek] [macOS] The letter ‘p’ is not continuously entered in a sticky note when holding the ‘p’ keyboard key
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.