Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

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

Style
Preview
pkglnk installs badge
## 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
```

[![pkglnk](https://www.pkglnk.dev/badge/preload.svg?style=pkglnk)](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!