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
Install as git package,
or just drop SceneReference.cs anywhere in your "Assets" folder.
- Add
using Tymski;
- Make a field in your script
public SceneReference scene;
SceneManagement.SceneManager.LoadScene(scene);