- Home /
How can I add multiple images to one gameobject
I have a character gameobject which has Healthbar and one booster. When it collides with the enemy or an obstacle healthbar image's fill amount decreases. And while using the booster, speed boost image's fill amount also goes down. But when I try to add these two images I'm able to decrease only one of them and the other one doesn't work.
These are the screenshots of the problem. Already grateful for any help.
There could be a number of reasons why it's not working, but I don't see anything in the sample of code that would necessarily be an issue. Maybe you could do some debugging and see if those booleans are setting to true the way they should. If either BoostOK or unFill isn't functioning properly then your fill amount would not change.
If you sent a larger portion of the code I may be able to see the issue.
Your answer
Follow this Question
Related Questions
Image Components overlap when a material is assigned on Lightweight Render Pipeline. 0 Answers
Making button sound components to many button instances? 2 Answers
[Optimization] - Is "Generate Physics shape", in Import settings, necessary for UI? 1 Answer
Change image alpha of a raw image component stored as a variable 1 Answer
Set UI component relative to another expanding UI component 0 Answers