Unity Opt extensions
Provides Unity-specific extensions and utilities for the Opt library, enabling safer handling of missing values through idiomatic patterns like TryGetComponent. Designed to reduce null reference errors and improve code safety when working with Unity's component system and optional values.
dev.comradevanti.opt-unity Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/opt-unity.git 
README Markdown
Copy this to your project's README.md
## Installation
Add **Unity Opt extensions** 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/opt-unity.git
```
[](https://www.pkglnk.dev/pkg/opt-unity)Dependencies (2)
Used By (1)
README
Unity Opt extensions
Unity-extensions and utilities for Opt
Found any issues? Post them here.
Want to see the Changelog? Its here.
⚠️ Development is paused ⚠️
No new features will be added or bugs fixed unless requested through an issue.
If you wish to fork this repository and continue the work, you are very welcome
to do so.
Features
Additionally to all features included in the Opt package you will also have
access to extensions and utilities which allow you to better deal with
missing values in Unity, such as by using TryGetComponent instead
of GetComponent.
All features are listed here.
If you have ideas for more, let me know .
Installation
The quickest way is to install via OpenUPM
using openupm add dev.comradevanti.opt-unity.
Or install manually
as git dependency
from https://github.com/ComradeVanti/UnityOptExtensions.git or download as zip
and import locally. If you
decide to install manually, make sure your project includes the
following scoped registry:
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.openupm",
"dev.comradevanti.opt-unity",
"dev.comradevanti.rect-constraints",
"org.nuget.comradevanti.csharptools.opt"
]
}
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In