Giter Club home page Giter Club logo

godot-scene-manager's Introduction

Scene Manager(Godot 4.1 version)

A Scene Manager for Godot Engine.
Looking for a Godot 3.5 version? See godot 3.5 branch.

๐Ÿ“„ Features

A manager whose task is to change scenes using a separate thread to load the new scene.

๐Ÿ“„ Usage

โžก๏ธ open the SceneManager scene and select the file path to the main scene file for the exported variable _main_scene_filepath. This file path will be used to load the main scene during the testing of the scene launched using F6. The main scene will act as a switch between levels. As a requiment, main scene must have Node child named ActiveSceneContainer

โžก๏ธ in order to know wheter scene finished loading/unloading, connect coresponding signals. Ex:

SceneManager.manager_scene_loaded.connect(_on_scene_ready)
SceneManager.manager_scene_unloaded.connect(_on_scene_gone)

โžก๏ธ if you want to be informed about state of background loading, connect signal update_progress. Ex:

SceneManager.update_progress.connect(loading_screen._on_progress_changed)

โžก๏ธ to change scene, call change_scene(scene_filepath: String, scene_params: Dictionary = {}) Ex:

SceneManager.change_scene("res://work/src/scenes/main_scenes/scene_1.tscn", {"difficulty": "easy"})

godot-scene-manager's People

Contributors

marekzdun avatar

Stargazers

Varga avatar  avatar

Watchers

 avatar

Forkers

boyquotes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.