https://github.com/uralstech/utils.singleton
Provides a Unity MonoBehaviour class which makes all inheriting classes singletons.
https://github.com/uralstech/utils.singleton
Last synced: 8 days ago
JSON representation
Provides a Unity MonoBehaviour class which makes all inheriting classes singletons.
- Host: GitHub
- URL: https://github.com/uralstech/utils.singleton
- Owner: Uralstech
- License: apache-2.0
- Created: 2024-09-06T10:38:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T11:49:35.000Z (over 1 year ago)
- Last Synced: 2025-10-23T19:32:44.601Z (9 months ago)
- Language: C#
- Homepage: https://uralstech.github.io/Utils.Singleton/
- Size: 749 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Utils.Singleton
Provides classes to make other classes singletons.
[](https://openupm.com/packages/com.uralstech.utils.singleton/)
[](https://openupm.com/packages/com.uralstech.utils.singleton/)
## Installation
This *should* work on any reasonably modern Unity version. Built and tested in Unity 6.0.
### OpenUPM
1. Open project settings
2. Select `Package Manager`
3. Add the OpenUPM package registry:
- Name: `OpenUPM`
- URL: `https://package.openupm.com`
- Scope(s)
- `com.uralstech`
4. Open the Unity Package Manager window (`Window` -> `Package Manager`)
5. Change the registry from `Unity` to `My Registries`
6. Add the `Utils.Singleton` package
### Unity Package Manager
1. Open the Unity Package Manager window (`Window` -> `Package Manager`)
2. Select the `+` icon and `Add package from git URL...`
3. Paste the UPM branch URL and press enter:
- `https://github.com/Uralstech/Utils.Singleton.git#upm`
### GitHub Clone
1. Clone or download the repository from the desired branch (master, preview/unstable)
2. Drag the package folder `Utils.Singleton/Utils.Singleton/Packages/com.uralstech.utils.singleton` into your Unity project's `Packages` folder
3. In the `Packages` folder of your project, add the following line to the list in `manifest.json`:
`"com.uralstech.utils.singleton": "1.x.x",`
## Preview Versions
Do not use preview versions (i.e. versions that end with "-preview") for production use as they are unstable and untested.
## Documentation
See or `APIReferenceManual.pdf` and `Documentation.pdf` in the package documentation for the reference manual and tutorial.