Outline¶
Highlightable¶
Add Pixit Games > Highlight Kit > Highlightable to an object or character root.
| Inspector field | Behavior |
|---|---|
| Outline Enabled | Enables outline/fill; initially on |
| Override Color / Outline Color | Per-object color |
| Override Width / Outline Width | Width in pixels at 1080p |
| Override Fill / Fill Color | Fill over the object; alpha controls opacity, 0 disables it |
| Xray Enabled | Reveal hidden parts; see X-Ray |
| Override X Ray Color / Xray Color | Per-object silhouette color |
| Include Children | Includes child renderers; initially on |
Using PixitGames.HighlightKit and UnityEngine:
var h = GetComponent<Highlightable>();
h.SetOutline(true);
h.SetOutline(true, Color.cyan);
h.OutlineWidth = 6f;
h.FillColor = new Color(1f, 1f, 1f, 0.2f);
h.ClearOutlineOverrides();
h.SetOutline(false);
Mesh Renderers with Mesh Filters and Skinned Mesh Renderers are supported, including all submeshes. Sprites, particles, lines and trails are ignored. Animated skinned meshes follow the current bone pose.
Renderers are collected when enabled. Call RefreshRenderers() after adding/removing child renderers or swapping meshes/materials at runtime, such as when equipping an item.
Renderer Feature > Outline¶
| Setting | Default | Behavior |
|---|---|---|
| Color | Amber #FFBF1A |
Default without an object override |
| Width | 4 | Pixels at 1080p |
| Softness | 0 | 0: hard anti-aliased edge; 1: fades over the full width |
| Intensity | 1 | Brightness; above 1 can bloom with HDR/Bloom before post-processing |
| Fill Color | Amber, alpha 0 | Alpha 0 disables fill |
| Visibility | Visible Only | Visible parts only; Always includes hidden parts and needs no depth |
| Layer Mask | Nothing | Highlights selected layers without a component; Highlightable takes precedence |
| Rendering Layer Mask | Default | Further narrows Layer Mask using rendering layers |
A non-empty Layer Mask runs the effect every frame, even with no matching object visible.
Different widths¶
Objects can use different widths simultaneously. Where outlines meet, the more opaque outline wins at each pixel, preserving thin outlines beside thick ones.
Alpha clipping¶
Leaves/fences follow their visible shapes, including holes. Materials must enable _ALPHATEST_ON and provide _BaseMap or _MainTex. The kit reads _Cutoff and texture alpha multiplied by _BaseColor. URP Lit, Simple Lit and Unlit use these conventions.
Pulse¶
Add Pixit Games > Highlight Kit > Outline Pulse beside Highlightable. It animates color between Color A/B and/or width between Width A/B, at Frequency cycles per second.
Use Unscaled Time keeps pulsing at Time.timeScale = 0. While enabled it drives color/width overrides; disabling restores the previous values.