CanvasLayer alpha?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Footurist

I am feeling a little ridiculous right now cause I can’t seem to figure out how to manipulate the transparency of a CanvasLayer (for transitioning scenes, which have HUDs inside CanvasLayers). It’s probably a simple workaround, but I can’t see it right now, any idea?
Viewports are not an option for me, because they result in a pretty bad performance drop on mobiles (tested it).

:bust_in_silhouette: Reply From: Footurist

I chose to wrap the contents of the CanvasLayers in CanvasModulates, which will follow the modulate of their owners, so this is solved.

how did u make it follow the modulate of the owners? is there a way to do it automatically, or did u have to write ur own code (like in _process or through a signal)?

I cant get it to work with Control nodes. if their parent is a CanvasModulate, they cant resize to the screen (making the layout “Full Rect” doesnt do anything)

ekaunt | 2019-08-23 04:43