Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 1.87 KB

File metadata and controls

102 lines (68 loc) · 1.87 KB

UI Graphic Sector

Unity3d uGUI Custom Graphic that draws an oval sector


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

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 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.

Properties

The properties of the Horizontal Scroll Snap control are as follows:

Property Description
TBC TBC

Methods

Method Arguments Description
TBC TBC TBC

Usage

TBC


Video Demo

See Source Repository for demonstrations


See also

N/A


Credits and Donation

Dmitry (mitay-walle)


External links

Sourced from