https://github.com/xjine/unity_sceneobject
Setup SceneAsset in Inspector & load it runtime.
https://github.com/xjine/unity_sceneobject
assets unity
Last synced: 2 months ago
JSON representation
Setup SceneAsset in Inspector & load it runtime.
- Host: GitHub
- URL: https://github.com/xjine/unity_sceneobject
- Owner: XJINE
- License: bsd-3-clause
- Created: 2024-03-01T11:55:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T12:27:18.000Z (over 2 years ago)
- Last Synced: 2025-04-03T09:12:40.481Z (about 1 year ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```csharp
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