Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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

Style
Preview
pkglnk installs badge
## 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
```

[![pkglnk](https://www.pkglnk.dev/badge/sceneref.svg?style=pkglnk)](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

add package

insert link

or add "com.morzyolo.sceneref": "https://github.com/morzyolo/SceneRef.git" to Packages/manifest.json

How to use

  1. Declare field in MonoBehaviour class

    [SerializeField] private SceneRef _sceneRef;
    
  2. Drag a scene from the project folder into the component field in the Inspector

  3. Invoke a scene transition to a different scene by utilizing the declared field.

    SceneManager.LoadScene(_sceneRef);
    

License

MIT

Comments

No comments yet. Be the first!