npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.rwth.unity.omilaxr.scenemanager

v0.1.2

Published

Manage scenes for builds with OmiLAXR.SceneManager. Auto-generate scene enums, set default base/start scenes, and simplify load/unload operations

Downloads

8

Readme

OmiLAXR.SceneManager

Unity Badge License

Effortlessly manage scenes for builds with OmiLAXR.SceneManager. Auto-generate scene enums, set default base/start scenes, and simplify load/unload operations.

Key Features

  • Auto-generate enum containing scenes from build settings (properly displayed in the editor)
  • Load/unload scenes using the generated enum
  • Set a base scene that should always be loaded
  • Define start scenes to load on start when only the base scene is present
  • Trigger various events on scene loading and unloading
  • Utilize the Scene Queue component to move through a predefined sequence of scenes (e.g., for a Guided Tour)

Installation

Install the package using the package manager and adding it with the following git url: https://gitlab.com/learntech-rwth/omilaxr-ecosystem/omilaxr.scenemanager.git Another possibility is to clone the repository into the Packages folder.

Generated Enum (OmiLAXRScene)

After installing the package, locate the generated scene enum under Assets/Resources/Unity Scene Manager. Manual changes to the enum will be overwritten during regeneration. The enum additionally provides the ability to retrieve:

  • Path(): Get the path to the corresponding scene
  • Index(): Get the build index of the corresponding scene
  • IsLoaded(): Get the loaded state of the scene
  • Name(): Get the name of the scene
  • GetScene(): Get the Unity scene object of the scene
  • GetRootGameObjects(): Get the root game objects in the scene

Scene Controller Setup

Configure the start and base scenes for your project using the configuration window under OmiLAXR > Scene Controller Configuration.

  • Set active on launch: Control which scene should be set as the active scene on launch.
  • Base scene: Control which scene should always be loaded on launch. When starting playmode in the editor, the base scene will be loaded additionally to the already opened scene.
  • Start scenes: Control which scenes should be loaded on top of the base scene on launch. When the base scene is already loaded in the editor, the start scenes will additionally be loaded.

To disable this behavior for a specific scene, add the NoAdditionalSceneLoad.cs component anywhere in the scene. The Samples folder also provides a prefab that can be dropped into a scene.

Scene Loading

Load/unload scenes via script using the following async methods located in the OmiLAXR.SceneManagement.Runtime namespace:

  • LoadScene(OmiLAXRScene scene, LoadSceneMode mode, bool setActive)
    • OmiLAXRScene scene: The scene to be loaded.
    • LoadSceneMode mode: Should the scene be loaded in single or additive mode?
    • bool setActive: Should the scene be set as the active scene after loading?
  • UnloadScene(OmiLAXRScene scene)
    • OmiLAXRScene scene: The scene to be unloaded.

Unity versions newer than 2023.1 use the Awaitable type, while older versions use the Task type.

License

This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details.