Skip to main content

CustomOutline

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​

MemberWhat it is
CustomOutline()Creates a CustomOutline with default values.

Fields​

MemberWhat it is
Color glintColorColour used for the glint vertices.
bool glintEffectWhether to tint some vertices with glintColor.
int glintVertexWhich vertex of each 6-vertex quad the glint centres on (0 to 5).
int glintWidthHow many vertices either side of glintVertex also get the glint.
float m_sizeOutline offset in pixels (0 to 15).

Methods​

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