Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xjine/unity_sceneobject
Setup SceneAsset in Inspector & load it runtime.
https://github.com/xjine/unity_sceneobject
assets unity
Last synced: 15 days 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T12:27:18.000Z (10 months ago)
- Last Synced: 2024-03-20T20:12:35.768Z (10 months ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- 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