Unity UI Extensions

DiamondGraph

Graphic control for drawing a diamond in the UI System


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

Advanced polygon control with 4 fixed vertices which can be manipulated to control the look and feel of the primitive


Properties

Property Description
Width Horizontal radius of the diamond.
Height Vertical radius of the diamond.
Thickness Stroke thickness when not filled.
Fill Enable to render a filled diamond; disable for outline only.
Preserve Aspect Maintain aspect ratio when resizing.

Methods

This component does not expose public methods beyond inherited behaviour.


Usage

Add the primitive control to your scene using:

GameObject -> UI -> Extensions -> Primitives -> Diamond Graph

Alternatively, add the component using:

Add Component -> UI -> Extensions -> Primitives -> Diamond Graph


Video Demo

tutorial video


See also

UIPolygon


Credits and Donation

koohddang


“List of links for the control, e.g. Source, other info”