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
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
-
ethanparab
Mar 05, 2023 21:54
I'm getting the same issue on 2021.3.16f1 right now.
-
exe2k
Jul 14, 2022 00:55
2020.3.24f1 Still has this bug
-
jsherreno
Jun 29, 2022 21:19
This happened to me in the 2020.3.0f version, well not exactly, my image was in "Sliced" anyway I couldn't change the image color by script, and the only way I found to fix it was using a public variable of color and set the color in the inspector for then assigning that color to the image via script, instead of creating that color by script.
-
ChichoRD
Mar 20, 2022 19:28
The issue has showed up again in version 2021.2.7f1. The color field does indeed change but the image on both the screen and editor preview remains the same unless the image is being hovered.
-
serg_borisov97
Mar 09, 2022 14:27
I have the same problem on 2021.2.6f1. The inspector shows the intended color, but the ingame doesn't change, only on user's input (which is not an option)
-
lilljonah
Feb 02, 2022 23:42
I'm having the same issue as the other commenters, I'm using 2020.3.24f1 and the image wont change via script. Debug.Log displays the Image.color as the intended changed color but I see no change in game. When I select the image color in the hierarchy and open the small color menu it displays the incorrect color in the "old color" swatch and the correct color in the "new color" swatch but I see no evidence of the new color in-game.
-
salvaa4532
Jan 17, 2022 23:52
Im on version 2019.4.16f1 and the image wont change its color via script.
I tried seeing its color with Debug.log(image.color) and it actually printed the color i was changing to, so it seems like the color does change but there’s no visual evidence of it in the inspector neither the game view. -
spockthegray-mk2
Aug 27, 2021 20:39
Still seeing this in 2020.1.9f1!
-
Fr4ncisc0Fr4nc0
Jan 06, 2021 06:01
I'm using 2020.1.8f1 and it still happens while trying to change the image color.
-
rebeccaruva
Dec 15, 2020 03:05
reproduced in 2019.4.8f1. While in play mode I can select the image's color and it actually shows the correct color in the pop up...but not in inspector nor the game view itself.
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
- Objects flickering in Play Mode when using RenderTexture with Canvas
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
Resolution Note (fix version 2019.1.5f1):
Fixed in: 2019.3.0a4, 2019.2.0b4, 2019.1.5f1