A class in Root.Township, UnityEngine.UI.
A UI outline effect that draws eight shadow copies around a graphic, with an optional glint that recolours some vertices.
Constructors
| Member | What it is |
|---|
CustomOutline() | Creates a CustomOutline with default values. |
Fields
| Member | What it is |
|---|
Color glintColor | Colour used for the glint vertices. |
bool glintEffect | Whether to tint some vertices with glintColor. |
int glintVertex | Which vertex of each 6-vertex quad the glint centres on (0 to 5). |
int glintWidth | How many vertices either side of glintVertex also get the glint. |
float m_size | Outline offset in pixels (0 to 15). |
Methods
| Member | What it is |
|---|
override void ModifyMesh(VertexHelper vh) | Optionally tints the glint vertices, then adds eight offset copies of the mesh in effectColor (four diagonals and four sides at 1.5 times the size). |