Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/comradevanti/unityrectconstraints

This Unity package adds useful utilities for working with Rect objects in GUI and EditorGUI code.
https://github.com/comradevanti/unityrectconstraints

constraints dividing editor editorgui gui inspector layout padding rectangle splitting unity unity3d utility

Last synced: about 2 months ago
JSON representation

This Unity package adds useful utilities for working with Rect objects in GUI and EditorGUI code.

Awesome Lists containing this project

README

        

# Unity Rect-constraints

[![openupm](https://img.shields.io/npm/v/dev.comradevanti.rect-constraints?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/dev.comradevanti.rect-constraints/)

This Unity package adds useful utilities for working with `Rect` objects
in `GUI` and `EditorGUI` code. Some features include:

- Placing rectangles relative to each other
- Adding padding
- Dividing rectangles into sub-sections

For specific instructions and guides check out
the [documentation](./Documentation~/Home.md).

**⚠️ 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.

## Installation

The quickest way is to install via [OpenUPM](https://openupm.com)
using `openupm add dev.comradevanti.rect-constraints`. Or install manually
as [git dependency](https://docs.unity3d.com/Manual/upm-ui-giturl.html)
from `https://github.com/ComradeVanti/UnityRectConstraints.git` or download as
zip and [import locally](https://docs.unity3d.com/Manual/upm-ui-local.html).
If you
decide to install manually, make sure your project includes the
following [scoped registry](https://docs.unity3d.com/Manual/upm-scoped.html):

```json
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.openupm",
"dev.comradevanti.rect-constraints"
]
}
```

## Roadmap

Features that could be added in the future (Help wanted)

- Percentage-based sizes
- Min/Max sizes
- Weights
- Grids
- Tests