Scene Ref
Keeps a reference to a scene asset for game runtime
com.morzyolo.sceneref 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/sceneref.git README Markdown
Copy this to your project's README.md
## Installation
Add **Scene Ref** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/sceneref.git
```
[](https://www.pkglnk.dev/pkg/sceneref)README
SceneRef
SceneRef is used to keep a reference to a scene asset so that it can be used during game runtime.
How to install
You can add https://github.com/morzyolo/SceneRef.git to Package Manager
or add "com.morzyolo.sceneref": "https://github.com/morzyolo/SceneRef.git" to Packages/manifest.json
How to use
Declare field in MonoBehaviour class
[SerializeField] private SceneRef _sceneRef;Drag a scene from the project folder into the component field in the Inspector
Invoke a scene transition to a different scene by utilizing the declared field.
SceneManager.LoadScene(_sceneRef);
License
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In