Preload
Makes preloading singletons as easy as marking a class with an attribute
com.smalltail.preload 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/preload.git README Markdown
Copy this to your project's README.md
## Installation
Add **Preload** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/preload.git
```
[](https://www.pkglnk.dev/pkg/preload)README
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.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In