SceneReference
SceneReference copied to clipboard
Unity3D script, that allows assigning serializable references to scenes in inspector.
SceneReference.cs for Unity3D
Unity3D script, that allows assigning serializable references to scenes in inspector.
Works in editor and in build.
Based on https://github.com/starikcetin/unity-scene-reference
Instalation
Install as git package,
or just drop SceneReference.cs anywhere in your "Assets" folder.
Usage
- Add
using Tymski; - Make a field in your script
public SceneReference scene;
-
In inspector, reference your scene

-
Load your scene
SceneManagement.SceneManager.LoadScene(scene);