Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skibitsky/scene-reference
Custom property that allows to reference scene asset directly from the Editor
https://github.com/skibitsky/scene-reference
csharp openupm unity upm upm-package
Last synced: about 1 month ago
JSON representation
Custom property that allows to reference scene asset directly from the Editor
- Host: GitHub
- URL: https://github.com/skibitsky/scene-reference
- Owner: skibitsky
- License: mit
- Created: 2020-06-16T11:16:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T09:13:47.000Z (3 months ago)
- Last Synced: 2024-09-30T18:03:11.316Z (about 1 month ago)
- Topics: csharp, openupm, unity, upm, upm-package
- Language: C#
- Homepage:
- Size: 39.1 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SceneReference [![openupm](https://img.shields.io/npm/v/com.skibitsky.scene-reference?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.skibitsky.scene-reference/)
> Custom property that allows to reference scene asset directly from the Editor
## Usage
```csharp
public class SceneLoader : MonoBehaviour
{
[SerializeField] private SceneReference sceneToLoad;private void Start()
{
SceneManager.LoadSceneAsync(sceneToLoad);
}
}
```## Installation
### Install via OpenUPM
The package is available on the [openupm registry](https://openupm.com). It's recommended to install it via [openupm-cli](https://github.com/openupm/openupm-cli).
```
openupm add com.skibitsky.scene-reference
```### Install via Git URL
Open *Packages/manifest.json* with your favorite text editor. Add the following line to the dependencies block.
{
"dependencies": {
"com.skibitsky.scene-reference": "https://github.com/skibitsky/scene-reference.git"
}
}Notice: Unity Package Manager records the current commit to a lock entry of the *manifest.json*. To update to the latest version, change the hash value manually or remove the lock entry to resolve the package.
"lock": {
"com.skibitsky.scene-reference": {
"revision": "master",
"hash": "..."
}
}