Skip to content

Uralstech/Utils.Singleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utils.Singleton

Provides classes to make other classes singletons.

openupm openupm

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 https://uralstech.github.io/Utils.Singleton/DocSource/QuickStart.html or APIReferenceManual.pdf and Documentation.pdf in the package documentation for the reference manual and tutorial.

About

Provides a Unity MonoBehaviour class which makes all inheriting classes singletons.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Sponsor this project

Used by

Contributors

Languages