I started working on a UI today and wanted to fade in some objects I am creating during runtime from a base object which I copy and modify. The object consists of multiple elements: images, text, buttons.
I could not find a way to change the opacity for this group at one single point, but only fade their individual opacities. However fading a button which is active = false doesn’t do anything. Inactive Tint has alpha and overrides whatever you’ve set in opacity. :-//
The only solution I could think of is to attach more functions to the buttons and handle the color switch for active, hover, inactive and the not use the active bool on the button script but rather disable the component.
Seems like a lot of writing to me, not even complicated but just a lot of work.
Is there a better way to do this that I am not seeing? (lol maybe I’ll just render the main camera to an image before activating the 2d screen, push the render texture to a screen sized image and fade that one out instead xD)
aaaaaand well… wouldn’t it make sense to use opacity as a multiplier on whatever is set as colors in the button component … and just give the element color alpha too (because currently its only rgb)?