Skip to content

A basic straightforward scene loader with a loading screen for quick setup

License

Notifications You must be signed in to change notification settings

MikeAmputer/godot-simple-scene-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Most Simple Scene Loader

A basic straightforward scene loader with a loading screen for quick setup. Very simple and featureless. Ideal for rapid development and early project stages. Just a few files to begin with.

This code is released under the CC0 license, allowing you to use it freely without any restrictions or attribution requirements.

Contains

  • loading script with single public method
  • loading scene with animation player and progress bar

Contains Not

  • documentation and code comments
  • plugin files and configs
  • example files
  • project settings references
  • absolute paths to non-existent resources
  • hidden functionality and implicit behaviour

Installation

  1. Obtain the asset from the Godot Asset Library or download from github
  2. Add the loading.tscn scene as a singleton in the autoload settings (for more details, refer to the Godot documentation on singletons)

Usage

Use the function Loading.load_scene, assuming Loading is the name you assigned to your singleton. The function includes two parameters:

  • path: String: The path to the scene that you want to load, e.g., "res://Scenes/main_menu.tscn"
  • use_transition_scene: bool: Determines if a loading screen should be used during the transition. This is optional and defaults to false

Customization

Though this asset is designed for quick integration without detailed documentation and expects users to extend it on their own, I will share some customization examples I have personally created:

  • On scene loaded - pass a Callable to execute when scene is loaded. Useful if you need to pass some parameters to the scene.

Included Scene Preview

Preview

About

A basic straightforward scene loader with a loading screen for quick setup

Topics

Resources

License

Stars

Watchers

Forks