Search Issue Tracker

Fixed in 2019.1.5f1

Fixed in 2019.1.X, 2019.2.X

Votes

0

Found in

2019.1.0a5

2019.1.0b8

Issue ID

1143135

Regression

Yes

Image Color cannot be changed via script when Image type is set to Simple

uGUI

-

To reproduce:
1. Open attached project "alphaspritebug.zip", scene "AlphaTest"
2. Enter Play mode
3. Click on the numbered buttons
4. Observe the bottom row of pictures (upper row is correct result)

Expected: Image alpha is changed via script
Actual: alpha is not changed if Image type is set to Simple

Reproduced in: 2019.1.0a5, 2019.1.0f1, 2019.2.0a11
Not reproduced in: 2017.4.25f1, 2018.3.12f1, 2019.1.0a4

Note: other image types do not reproduce the issue

  1. Resolution Note (fix version 2019.1.5f1):

    Fixed in: 2019.3.0a4, 2019.2.0b4, 2019.1.5f1

Comments (47)

  1. xiangyi88889999

    Apr 30, 2019 04:46

    In 2019.1.0f2 same issue...

  2. sier_ua

    Apr 29, 2019 11:16

    2019.1.0f2, same

  3. Gamrok

    Apr 24, 2019 10:32

    Same problem here when changing the sprite and/or the color. Moreover when a shadow component is used, only the shadow is displayed after changing the sprite.

    I'm using Unity 2019.1.0f2

  4. Urishizu

    Apr 24, 2019 01:12

    Just upgraded to 2019.1.0f2 and this is absolutely broken in there. Sprite switching via script is causing deformation.

  5. Nition

    Apr 23, 2019 20:03

    In 2019.1.0f1 setting the .color works, but only until reassigning the .sprite. Once a new sprite is set, the .color setting stops working.

  6. AShim-3D

    Apr 22, 2019 13:27

    In 2019.1.0f2 same issue...

  7. LastChaos

    Apr 19, 2019 14:55

    In 2019.1.0f2 same issue...

Add comment

Log in to post comment