https://github.com/bleppie/blep.guishapes
https://github.com/bleppie/blep.guishapes
unity unity-package unity-scripts unity2d
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bleppie/blep.guishapes
- Owner: bleppie
- License: mit
- Created: 2024-06-04T21:24:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-30T17:07:10.000Z (10 months ago)
- Last Synced: 2025-08-30T19:09:39.725Z (10 months ago)
- Topics: unity, unity-package, unity-scripts, unity2d
- Language: C#
- Homepage:
- Size: 660 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Blep.GUIShapes
===============
**Blep.GUIShapes** adds simple shapes with outlines to Unity's GUI. The shapes
are created in shaders procedurally and are nicely antialiased. Shapes are a
subclass of Image, and so support all operations that Images do.

To create a shape, simply create it from the GameObject menu or add the
corresponding Component to your GameObject: Circle, Pill, Ellipse, or Rectangle.
Rectangles can be plain (right angled), rounded, chamfered, or custom (each
corner has a different radius/chamfer). Use a negative radius to create a
chamfered corner in a custom rectangle. Each one of these Components will have
its own Material.
If you want multiple shapes to share the same Material, use the generic Shape
Component: Create a Material using one of the included Shaders (Circle, Ellipse,
Rectangle), set its parameters, create a generic Shape Component, add it to your
GameObject, and set its Material to the material you just created.
If you add a sprite to your shape, it will affect only the fill, not the outline.
Installation Instructions
-------------------------
[Install from Git](https://docs.unity3d.com/Manual/upm-ui-giturl.html) or copy
to your Assets folder
Supported Shapes
--------------------
* Circle
* Pill
* Ellipse
* Rectangle with plain, rounded, chamfered, and custom corners
License
-------
See LICENSE.md