+1 vote

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).

asked Mar 7, 2018 in Engine by Footurist (830 points)

1 Answer

0 votes
Best answer

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

answered Mar 7, 2018 by Footurist (830 points)

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)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.