Skip to content

XJINE/Unity_SceneObject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity_SceneObject

Setup SceneAsset in Inspector & load it runtime.

Importing

You can use Package Manager or import it directly.

https://github.com/XJINE/Unity_SceneObject.git?path=Assets/Packages/SceneObject

How to Use

public class Sample : MonoBehaviour
{
    public SceneObject sceneObject;
    ~
    SceneManager.LoadScene(sceneObject.Path);
    ~
}

Scene must be setup in "build settings" if you want to load in runtime.

References

Original idea is here. https://gist.github.com/Hertzole/ac269f3148bc5192cc2eb6d472870d24

About

Setup SceneAsset in Inspector & load it runtime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages