Unity3d uGUI Custom Graphic that draws an oval sector
1 Overview
3 Methods
4 Usage
6 See also
Unity3d uGUI Custom Graphic that draws an oval sector.
- 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
- automatic navigation not always recognize Selectable in selection wheel, cause it's RectTransforms placed identically. 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 artifacts through uv repeating, no blowing up geometry as UI.Image.Tiled does.
The properties of the Horizontal Scroll Snap control are as follows:
| Property | Description |
|---|---|
| TBC | TBC |
| Method | Arguments | Description |
|---|---|---|
| TBC | TBC | TBC |
TBC
See Source Repository for demonstrations
N/A
Dmitry (mitay-walle)