Skip to content

Commit 457a6d2

Browse files
Added UI Graphic Selector
1 parent 6ba1a8c commit 457a6d2

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

Controls/Images/UIGraphicSector

Whitespace-only changes.

Controls/UIGraphicSector.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# UI Graphic Sector
2+
3+
Unity3d uGUI Custom Graphic that draws an oval sector
4+
5+
<!--![](Images/ Game Image.jpg)-->
6+
7+
---------
8+
9+
## Contents
10+
11+
> 1 [Overview](#overview)
12+
>
13+
> 2 [Properties](#properties)
14+
>
15+
> 3 [Methods](#methods)
16+
>
17+
> 4 [Usage](#usage)
18+
>
19+
> 5 [Video Demo](#video-demo)
20+
>
21+
> 6 [See also](#see-also)
22+
>
23+
> 7 [Credits and Donation](#credits-and-donation)
24+
>
25+
> 8 [External links](#external-links)
26+
27+
---------
28+
29+
## Overview
30+
31+
Unity3d uGUI Custom Graphic that draws an oval sector.
32+
33+
### Features
34+
35+
- no custom shaders
36+
- correct input handling
37+
- SpriteBorder support
38+
- 9-slice support
39+
- SpriteAtlas support
40+
- pixelPerUnitMultiplier support
41+
- Anchors for other transforms, including resizing to squeeze content into a sector
42+
- UV-by radius and tile by RectTransform
43+
- free pivot, or generated in the center of the sector
44+
- gradients
45+
- nested sectors can stick to parent
46+
- offset by angle
47+
- pixel offset
48+
- performance-wise
49+
50+
### Known Issues
51+
52+
- automatic navigation not always recognize Selectable in selection wheel, cause it's RectTransforms placed identically. Use explicit navigation instead
53+
- 9-sliced sprites 'shrink' to center, cause uv calculated per-degree
54+
- 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.
55+
56+
---------
57+
58+
## Properties
59+
60+
The properties of the Horizontal Scroll Snap control are as follows:
61+
62+
Property | Description
63+
-|-
64+
TBC|TBC
65+
66+
---------
67+
68+
## Methods
69+
70+
Method | Arguments | Description
71+
-|-|-
72+
TBC|TBC|TBC
73+
74+
---------
75+
76+
## Usage
77+
78+
TBC
79+
80+
---------
81+
82+
## Video Demo
83+
84+
[See Source Repository for demonstrations](https://github.com/mitay-walle/com.mitay-walle.ui-graphic-sector?tab=readme-ov-file)
85+
86+
---------
87+
88+
## See also
89+
90+
N/A
91+
92+
---------
93+
94+
## Credits and Donation
95+
96+
Dmitry (mitay-walle)
97+
98+
---------
99+
100+
## External links
101+
102+
[Sourced from](https://github.com/mitay-walle/com.mitay-walle.ui-graphic-sector)

0 commit comments

Comments
 (0)