https://github.com/mitay-walle/com.mitay-walle.ui-graphic-sector
uGUI Custom Graphic that draws an oval sector
https://github.com/mitay-walle/com.mitay-walle.ui-graphic-sector
Last synced: 6 months ago
JSON representation
uGUI Custom Graphic that draws an oval sector
- Host: GitHub
- URL: https://github.com/mitay-walle/com.mitay-walle.ui-graphic-sector
- Owner: mitay-walle
- License: mit
- Created: 2024-06-25T21:46:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-08T22:30:06.000Z (over 1 year ago)
- Last Synced: 2024-07-10T02:44:01.657Z (over 1 year ago)
- Language: C#
- Size: 40 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Unity3d uGUI Custom Graphic that draws an oval sector
# Features
- no custom shaders
- correct input handling
- SpriteBorder support
- 9-slice support
- SpriteAtlas support
- pixelPerUnitMultiplier support
- Anchors for other transforms, including resizing to squeeze content into a sector
- UV-by radius and tile by RectTransform
- free pivot, or generated in the center of the sector
- gradients
- nested sectors can stick to parent
- offset by angle
- pixel offset
- performance-wise
# Known Issues
- automatic navigation not always recognize Selectable in selection wheel, cause it's RectTransforms placed identicaly. Use explicit navigation instead
- 9-sliced sprites 'shrink' to center, cause uv calculated per-degree
- Tiled mode not support SpriteAtlas, only Single-texture sprites, by design. Cause tiling achievet through uv repeating, no blowing up geometry as UI.Image.Tiled use
# Usage Example | 9-slice sprite




















