G
Publisher
ghoulbroth
Fade Transition
Misc
Fade Transition UI Effects Visual Cover Uncover GDScript
A node for covering and uncovering the screen with a fading effect. Created for Godot 4
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Fade Transition
Description
A node for covering and uncovering the screen with a fading effect. Created for Godot 4.
Properties
| Type | Name | Default value |
|---|---|---|
| float | default_cover_duration | 0.3 |
| float | default_uncover_duration | 0.2 |
| bool | initially_covering | false |
| TransitionType | cover_transition | TRANS_EXPO |
| EaseType | cover_ease | EASE_OUT |
| TransitionType | uncover_transition | TRANS_EXPO |
| EaseType | uncover_ease | EASE_OUT |
Methods
| Return type | Signature |
|---|---|
| void | cover(float duration=default_cover_duration) |
| void | uncover(float duration=default_uncover_duration) |
| void | set_covered() |
| bool | is_running() const |
Signals
Usage
Covering the screen
- Instantiate a
FadeTransitionnode in your scene - Call the
cover()function on theFadeTransition
Uncovering the screen
- Instantiate a
FadeTransitionnode in your scene - Call the
uncover()function on theFadeTransition
Signals
The FadeTransition node will emit cover_done and uncover_done signals when its cover() and uncover() methods are finished respectively.
FAQ
Why do you use terms like "cover" and "uncover"
I keep confusing myself when I think if "fading out" means the screen is fading out (to black) or the screen cover is fading out (to transparency).