Edit of asset "Universal Fade" Accepted

Old/Current New/Edit
Title Universal Fade Universal Fade
Description Allows you to fade out and fade in the screen with a single line of code. No configuration needed, just install the addon and you can use it.

Example:
Fade.fade_out()
This will fade the screen to black over 1 second.

You can achieve scene transition with these 3 lines:
await Fade.fade_out().finished
get_tree().change_scene(new_scene)
Fade.fade_in()

The fade methods take these arguments (all optional):
time - time of the fade (in seconds). 1 by default
color - the color to fade to/from. Black by default
pattern - the fade pattern. See below. Empty string for no pattern (default)
reverse - if using pattern, this will reverse it. Default is false
smooth - if using pattern, this will make it smooth. Default is false

There's also a method for crossfading (i.e. interweawing two screens). It also takes two methods, where only one takes (optional) arguments:

Fade.crossfade_prepare(time, pattern, reverse, smooth)
get_tree().change_scene(new_scene)
Fade.crossfade_execute()

The node comes with 5 patterns: Diagonal, Diamond, GradientHorizontal, GradientVertical, Noise, Swirl. Just type the name of the pattern to use it, e.g. Fade.fade_out(1, Color.BLACK, "Diamond")

You can add custom fade patterns by putting PNG files to "addons/UniversalFade/Patterns" folder. The name format is: "<name>.png", where <name> is what you will provide as argument for the method. They should use grayscale colors and they will fade from white to black. The pattern directory can be changed using "addons/universal_fade/patterns_directory" project setting.

Check the repo for more info and some GIFs.
Allows you to fade out and fade in the screen with a single line of code. No configuration needed, just install the addon and you can use it.

Example:
Fade.fade_out(1)
This will fade the screen to black over 1 second.

You can achieve scene transition with these 3 lines:
await Fade.fade_out().finished
get_tree().change_scene(new_scene)
Fade.fade_in()

The fade methods take these arguments (all optional):
time - time of the fade (in seconds). 1 by default
color - the color to fade to/from. Black by default
pattern - the fade pattern. See below. Empty string for no pattern (default)
reverse - if using pattern, this will reverse it. Default is false
smooth - if using pattern, this will make it smooth. Default is false

The node comes with 5 patterns: Diagonal, Diamond, GradientHorizontal, GradientVertical, Noise, Swirl. Just type the name of the pattern to use it, e.g. Fade.fade_out(1, Color.BLACK, "Diamond")

You can add custom fade patterns by putting PNG files to "addons/UniversalFade" folder. The name format is: "Pattern<name>.png", where <name> is what you will provide as argument for the method. They should use grayscale colors and they will fade from white to black.

Check the repo for more info and some GIFs.
Category Misc Misc
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/KoBeWi/Godot-Universal-Fade https://github.com/KoBeWi/Godot-Universal-Fade
Issues Url https://github.com/KoBeWi/Godot-Universal-Fade/issues https://github.com/KoBeWi/Godot-Universal-Fade/issues
Godot version Godot 4.0 Godot 4.0
Version String 1.3 1.1
Download Commit f091514bba652880f81c5bc8809e0ee4498988ea 80f7d92779a273f93bb554ae17b04bb2bf4b3023
Download Url (Computed) https://github.com/KoBeWi/Godot-Universal-Fade/archive/f091514bba652880f81c5bc8809e0ee4498988ea.zip https://github.com/KoBeWi/Godot-Universal-Fade/archive/80f7d92779a273f93bb554ae17b04bb2bf4b3023.zip
Icon Url https://github.com/KoBeWi/Godot-Universal-Fade/blob/master/Media/Icon.png?raw=1
https://github.com/KoBeWi/Godot-Universal-Fade/blob/master/Media/Icon.png?raw=1
Preview Insert
Type image
Image/Video URL https://github.com/KoBeWi/Godot-Universal-Fade/blob/master/Media/Screenshot1.png?raw=1
Thumbnail