Extendable Scene Transitions
An extensible and customizable scene loader for Godot projects.
š¦ Installation
- Download the latest release from GitHub Releases.
- Unpack the addon into
res://addons/
. - Enable the plugin in Project > Project Settings > Plugins.
āļø Configuration
After enabling the addon, new Scene Manager settings will appear in Project Settings.
Here you can set the Initial Scene to load when your project starts.
š Using Transitions
To load a new scene, call:
SceneManager.load_scene(PATH_TO_SCENE, TRANSITION_DATA_RESOURCE)
- If no
TRANSITION_DATA_RESOURCE
is provided, the scene will load immediately.
(Recommended only for small scenes without visible transitions.) - If a
TRANSITION_DATA_RESOURCE
is provided:- The
play_out()
method of the transition is called. - The new scene is loaded.
- The
play_in()
method of the transition is triggered after loading.
- The
šØ Creating Custom Transitions
Creating a custom transition involves two steps:
-
Create a new scene with a script that extends
SceneTransition
.
š Example script -
Create a
SceneTransitionData
resource that references your transition scene.
š Example resource
š Example Usage
var transition_data = load("res://addons/your_addon/data/fade.tres")
SceneManager.load_scene("res://scenes/next_scene.tscn", transition_data)
š License
MIT ā see LICENSE.md for details.