Skip to content

RGSMS/Scene-Inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scene Inspector 🎮

Unity C#

Unity 2019.4+ GitHub last commit GitHub all releases GitHub

Roadmap

Twitter Follow

A custom serialization of a scene's informations in the unity inspector.

You will no longer insert the wrong scene name when typing it in the string field. In addition, you can decide to load a scene using the Path, Name or Build Index without worrying about changes that can be made to the selected scene.

What this allows you to do:

  1. Select scenes from any project folder and serialize the information in the Unity inspector;
  2. Stores the Path, Name and Build Index informations from selected scene;
  3. Keeps your selected scene's Build Index updated if you change the order of scenes in the build settings;
  4. Keeps your selected scene's Path updated if you change the scene's folder

How to use:

Create a SceneInspector variable:

[SerializeField]
private SceneInspector _scene = null;

Configure the scene in the inspetor:

Choose which scene info you will use to load the scene:

SceneManager.LoadSceneAsync(_scene.BuildIndex);
//or
SceneManager.LoadSceneAsync(_scene.Name);
//or
SceneManager.LoadSceneAsync(_scene.Path);

About

A custom serialization of a scene's information in the unity inspector.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages