Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/comradevanti/unityrectconstraints
- Owner: ComradeVanti
- License: unlicense
- Created: 2022-08-30T09:30:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T10:32:44.000Z (10 months ago)
- Last Synced: 2024-03-19T11:49:33.265Z (10 months ago)
- Topics: constraints, dividing, editor, editorgui, gui, inspector, layout, padding, rectangle, splitting, unity, unity3d, utility
- Language: C#
- Homepage:
- Size: 57.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Rect-constraints
[![openupm](https://img.shields.io/npm/v/dev.comradevanti.rect-constraints?label=openupm®istry_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-sectionsFor 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