An open API service indexing awesome lists of open source software.

https://github.com/rossogames/rossoforge-scenes

A lightweight and flexible service that centralizes scene loading, unloading, and transitions, ensuring smooth and efficient navigation between scenes
https://github.com/rossogames/rossoforge-scenes

scene transition transitions unity

Last synced: about 1 month ago
JSON representation

A lightweight and flexible service that centralizes scene loading, unloading, and transitions, ensuring smooth and efficient navigation between scenes

Awesome Lists containing this project

README

          

# Rosso Games


Rossoforge

Rossoforge - Scenes


**Rossoforge-Scenes** A lightweight and flexible service that centralizes scene loading, unloading, and transitions, ensuring smooth and efficient navigation between scenes. It is designed to simplify and streamline scene management in Unity projects

#
**Version:** Unity 6 or higher

**Tutorial:** [Pending...]

**Dependencies:**
* [Rossoforge-Core](https://github.com/rossogames/Rossoforge-Core.git)
* [Rossoforge-Utils](https://github.com/rossogames/Rossoforge-Utils.git)
* [Rossoforge-Events](https://github.com/rossogames/Rossoforge-Events.git)
* [Rossoforge-Services](https://github.com/rossogames/Rossoforge-Services.git)

#

```csharp
// Setup
ServiceLocator.SetLocator(new DefaultServiceLocator());

var eventService = new EventService();
var sceneService = new SceneService(_sceneTransitionData);

ServiceLocator.Register(eventService);
ServiceLocator.Register(sceneService);
ServiceLocator.Initialize();

// Anywhere in your code
var myService = ServiceLocator.Get();

// Change scene displaying transition scene
_sceneService.ChangeScene(sceneName);
_sceneService.ChangeScene(sceneName, _customSceneTransitionData);

// Load and undload scenes immediately without showing transition effect
_sceneService.UnloadScene(sceneName);
_sceneService.LoadScene(sceneName, LoadSceneMode.Additive);

// Reload the current scene displaying transition scene
_sceneService.RestartScene();
_sceneService.RestartScene(_customSceneTransitionData);

// Load the previous scene displaying transition scene
_sceneService.GoBackScene();
_sceneService.GoBackScene(_customSceneTransitionData);
```

#
This package is part of the **Rossoforge** suite, designed to streamline and enhance Unity development workflows.

Developed by Agustin Rosso
https://www.linkedin.com/in/rossoagustin/