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

in Engine by (840 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.

by (840 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.