Search Issue Tracker

Fixed

Fixed in 6000.4.9f1, 6000.5.0b10, 6000.6.0a6

Votes

1

Found in

6000.4.7f1

6000.5.0b8

6000.6.0a6

Issue ID

UUM-142512

Regression

Yes

No longer able to change the Toggle or Slider GameObjects' Target Graphic value and a NullReferenceException is thrown when the Target Graphic value is set to None at any point

uGUI Controls

-

How to reproduce:
1. Open the attached “IN-142905_toggle” project
2. Open the “SampleScene” Scene
3. In the Hierarchy window, create a Toggle or a Slider GameObject
4. Select the created Toggle or Slider GameObject
5. In the Inspector window, make sure that Transition is set to either “Color Tint” or “Sprite Swap”
6. Set the Target Graphic to None
7. Try to set the Target Graphic to any other value other than None
8. Observe the Console window

Actual result: A NullReferenceException error is thrown, and the Target Graphics value is still set to None
Expected result: The Target Graphics value is successfully changed to the chosen value

Reproducible with: 6000.4.7f1, 6000.5.0b8, 6000.6.0a1 (7dc703ab9bd8), 6000.6.0a5
Not reproducible with: 6000.0.75f1, 6000.3.15f1, 6000.5.0a7

Reproducible on: Windows 11, Devuan GNU/Linux 6 (excalibur) (6.12.86) (by user)
Not reproducible on: No other environments tested

Notes:
- After setting the Toggle GameObject's value to None, you are no longer able to set it to any different value even after a Domain Reload or a project restart
- Custom classes that derive from Toggle are broken, because the Target Graphic in those cases is set to None by default

  1. Resolution Note:

    Fixed in 6000.6.0a6

  2. Resolution Note (fix version 6000.6.0a6):

    Fixed in 6000.6.0a6

  3. Resolution Note (fix version 6000.4.9f1):

    Fixed in 6000.4.9f1

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.