Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Makes preloading singletons in Unity as easy as marking a class with an attribute

Notifications You must be signed in to change notification settings

Lyrapuff/Unity-Preload

Repository files navigation

SmallTail.Preload

Makes preloading singletons in Unity as easy as marking a class with an attribute

Instalation

Via Unity Package Manager add from git url

https://github.com/SmallTailTeam/Unity-Preload.git

Usage

[Preloaded("Optional name")]
public class ASingletonObject : MonoBehaviour
...

And that's it, an empty object with this MonoBehaviour attached to it will be instantiated and DontDestroyOnLoaded as soon as the game starts.

Though be aware that this thing is not well tested yet, and perhaps will be extended in future to support multiple use cases.

About

Makes preloading singletons in Unity as easy as marking a class with an attribute

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages