Set Game-Object transform / color
Posted: Fri Sep 21, 2018 10:20 am
Hello again! How would I go about changing the transform values for several game-objects mid dialogue?
I have several game-object UI elements (UI Buttons and Images, etc on a canvas) serving as my game's HUD. Ideally I would like to have them change their rect-transform scales, rotation or image colors when the Player makes a good or bad decision during dialogue so that these choices are reflected in a more active way during gameplay. I.E. the hp bar's image color grows lighter or darker depending on the moral choices the Player makes. Or a mini-map that grows slightly larger (scale 1.1 instead of 1) if the Player opts to take a certain item and so on.
What would you reccomend to achieve this?
Thank you for your time.
I have several game-object UI elements (UI Buttons and Images, etc on a canvas) serving as my game's HUD. Ideally I would like to have them change their rect-transform scales, rotation or image colors when the Player makes a good or bad decision during dialogue so that these choices are reflected in a more active way during gameplay. I.E. the hp bar's image color grows lighter or darker depending on the moral choices the Player makes. Or a mini-map that grows slightly larger (scale 1.1 instead of 1) if the Player opts to take a certain item and so on.
What would you reccomend to achieve this?
Thank you for your time.