Transitions - m-canton/godot-scene-manager GitHub Wiki
Transition feature is not completed yet.
For now, the SceneManager.transition_start
method has been added to start a transition in the scene itself. This method requires a SceneTransition
resource. You can find examples in test/change_scene/transition
folder.
const FADE_TO_BLACK = preload("res://addons/scene_manager/test/change_scene/transition/fade_to_black.tres")
func _fade_to_change_scene() -> void:
process_mode = PROCESS_MODE_DISABLED
SceneManager.transition_start(FADE_TO_BLACK).finished.connect(_on_change_scene)
func _on_change_scene() -> void:
SceneManager.change_scene_to_file("scene.tscn")
Remember test folder is removed in exported project. If you want to use any file from test folder, you can move them to other folder in your project.
SceneManager.transition_clear
hides the transition layer and resets properties.
Note: SceneManager
is a CanvasLayer
. You can set layer
value or change addons/scene_manager/transition/layer
in your project settings to a value that fits your CanvasLayers.
I would appreciate if you report any bug in the plugin or any name change suggestions. This enhancement is still being implemented.