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

Inspector Framework

-

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.

  1. Response avatar

    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.

Comments (2)

  1. Cfb0b104dcc61245aa69270390a9e611?d=mm

    liuliu20036

    May 30, 2018 02:41

    I find the SerializedProperty.hasMultipleDifferentValues is always false. Which condition can SerializedProperty.hasMultipleDifferentValue change to true?

  2. Cfb0b104dcc61245aa69270390a9e611?d=mm

    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

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.