Static Evil
Wrapper for managing static references safely in Unity projects. StaticEvil provides a type-safe container for static fields, helping developers maintain clean static usage patterns and simplify static state cleanup across scenes and play sessions.
com.danand.staticevil 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/staticevil.git?path=Assets README Markdown
Copy this to your project's README.md
## Installation
Add **Static Evil** 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/staticevil.git?path=Assets
```
[](https://www.pkglnk.dev/pkg/staticevil)README
StaticEvil
If you heard about need to clean up statics – you know for what it is.
How to install
From remote repository
Add in Packages/manifest.json to dependencies:
"com.danand.staticevil": "https://github.com/Danand/StaticEvil.git#0.1.0-package-unity",
From local path
From local repository
"com.danand.staticevil": "file:///D/repos/StaticEvil/.git#0.1.0-package-unity",
From local working copy
"com.danand.staticevil": "file:D:/repos/StaticEvil/Assets",
What is the difference?
Local repository is resolved just like normal Git repository with optionally specified revision.
Local working copy is being copied "as is" into dependent project, without running any Git process.
Don't forget to reference StaticEvil via Assemly Definitions.
How to use
private static Evil<ShopManager> shopManager;
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In