Component
Highlight
Outlines an object, makes it glow, shows it through walls, lays a color or pattern over it, restyles its surface, fills it or frames it with brackets, from a Highlight Profile.
What it does
A Highlight draws a look on one object: an outline for the selected unit, a glow on the item under the cursor, a red silhouette of an enemy behind a wall, a hologram over an ally, a gold statue, a burning or frozen status, a capture point that fills up, a rarity beam over loot, or target brackets. The look comes from a Highlight Profile asset, which the inspector shows inline. With no profile, a plain orange outline is drawn on the parts the camera sees.
Pick any of the shipped looks from the Preset list: Selection Outline, Hover Glow, Enemy X-Ray, Ally Through Walls, Pickup Pulse, Target Lock, Hologram, Marching Ants, Energy Shield, Burning, Electrified, Frozen, Hologram Scan, Pixel Object, Blurred Object, Toon Object, Target Brackets, Silhouette, Gold Statue, Warning Stripes, Wireframe Grid, Poisoned, Circuit Glow, Rune Marks, Camouflage, Dragon Scales, Cursed Veins, Charmed Hearts, Slime Coating, Surface Grime, Wet Surface, Petrify, Iridescent Foil, Loot Glint, Rarity Beam, Charred Aftermath, Progress Fill, Freeze From Hit Point, Materialize Scan, Glass Statue, Invisibility Cloak, Ghost Form, Object Glitch, Brush Stroke Outline, Anime Power Aura and Buff Rim Pulse. Shipped profiles are read only, and Make Editable Copy gives you your own copy to change.
Switch the component on and off to select and deselect. Flash(color, seconds) flashes the object for hits and pickups, and works while the component is switched off, so a switched off Highlight serves as a flash only. To switch it with the mouse, a click or the player coming near, add a Highlight Trigger.
It draws the object's Mesh Renderers, Skinned Mesh Renderers and Sprite Renderers, those on its children included unless Include Children is off. Spine skeletons are drawn by what their attachments show, with nothing to set.
Add it
- Select the object.
- Choose Add Component > Pass Forge > Highlight. A plain orange outline shows at once.
- Open Preset, type part of a name (for example "x-ray"), and pick a look. Or press New Profile to make an empty profile of your own, or Choose Preset to open the Effect Presets window.
- To change a shipped look, press Make Editable Copy, give your copy a name, and edit it under Profile Settings.
- Press Try: Flash to see a hit flash on the object in the Scene and Game views.

Settings
Component
| Setting | What it does |
|---|---|
| Preset | A searchable list of every shipped highlight profile and your own under Assets/Pass Forge Effects (Highlight Profiles and Presets). Picking one assigns it to Profile. Shipped profiles are read only. |
| Profile | Look of the highlight. Objects sharing a profile are drawn together, which is cheaper than giving each object its own copy. Empty draws a plain orange outline. |
| Include Children | Also highlight the renderers on child objects. On by default. |
What the inspector shows around these:
- Set Up Effects button, with "No renderer on the active pipeline runs a Highlight node, so this component has no visible effect yet."
- "No Mesh Renderer, Skinned Mesh Renderer or Sprite Renderer found, so there is nothing to highlight." when nothing can be drawn.
- A note naming renderers under the object that are not highlighted, such as "Particle System on Sparks is not highlighted. Highlights draw Mesh, Skinned Mesh and Sprite Renderers."
- Try: Flash button, which flashes the object white for a hit, in Edit Mode too.
- With no profile: an info box and the buttons New Profile (asks where to save a new profile) and Choose Preset (opens Window > Pass Forge > Effect Presets).
- With a shipped profile: "... is a preset shipped with Pass Forge and cannot be changed. Make a copy to adjust it." and Make Editable Copy, which asks for a name, saves your copy in
Assets/Pass Forge Effects/Highlight Profilesand gives it to the object. Your copy is then listed with the presets under that name. - A Profile Settings foldout with the profile's settings. They are greyed out on a shipped profile.
- For a profile that moves by itself, such as marching dashes or a pulse: "This highlight moves outside Play Mode only while Preview In Edit Mode is on." with Turn On Preview.
Profile Settings
Each part of a profile is switched on by the tick box in its header. Only parts that are ticked draw. Defaults are those of a new profile, which has only Outline ticked.
Outline
| Setting | What it does |
|---|---|
| Color | Outline color. Alpha fades the whole outline, HDR values feed bloom. Default orange. |
| Width | Width in pixels, from 0.5 to 32. Exact at any size, with round corners. Default 3. |
| Softness | How softly the outer edge fades, in pixels, from 0 to 8. Small values stay crisp, large values blur the edge. Default 1. |
| Scale With Resolution | Treat the width as pixels at 1080p and scale it with the screen, so the outline keeps its look at any resolution. Off by default. |
| Visibility | Always outlines the whole silhouette, Visible Only (default) the parts the camera sees, Hidden Only the parts behind other geometry. |
| Style | Solid (default) draws one color. Dashed marches stripes of the two colors along. Energy flickers between them and wavers in width, for fire and electricity. Brush swells and tapers like an ink stroke and is redrawn a few times a second. |
| Secondary Color | Second color for Dashed and Energy. Zero alpha leaves gaps between the dashes. Default black. |
| Pattern Size | Size of the dashes or of the energy detail, in pixels, from 2 to 64. Default 10. |
| Pattern Speed | How fast the dashes march or the energy moves, from -10 to 10. Negative values reverse the direction. Default 2. |
Glow
| Setting | What it does |
|---|---|
| Color | Glow color. HDR values feed bloom. |
| Intensity | Brightness of the glow, from 0 to 8. Default 1.5. |
| Radius | How far the glow spreads, from 1 to 5. Each step roughly doubles the reach and adds a little cost. Default 3. |
| Outside Only | Keep the glow off the object itself, so only the halo around it lights up. On by default. |
| Visibility | Which part of the object casts the glow: Always, Visible Only (default) or Hidden Only. |
| Style | Soft (default) spreads a halo all around. Aura raises bands of toon flame from the silhouette, like an anime power up; give it a large Radius. |
| Aura Height | How high aura flames rise, in pixels, from 0 to 200. Default 60. |
| Aura Speed | How fast aura flames rise, from 0 to 10. Default 2. |
See-Through
| Setting | What it does |
|---|---|
| Color | Color of the silhouette drawn where the object is hidden behind other geometry. Default light blue. |
| Opacity | How opaque the silhouette is, from 0 to 1. Default 0.6. |
| Rim | Fade the middle of the silhouette so its edges stand out, like an x-ray, from 0 to 1. Default 0.5. |
| Rim Power | How tightly the rim hugs the edges, from 0.5 to 8. Default 2. |
Overlay
| Setting | What it does |
|---|---|
| Color | Color laid over the visible surface of the object. |
| Intensity | Strength of the overlay, from 0 to 1. Default 0.35. |
| Blend | Tint (default) paints the object towards the color, Additive brightens it. |
| Rim | Concentrate the overlay at the object's edges for a rim light look, from 0 to 1. Default 0. |
| Rim Power | How tightly the rim hugs the edges, from 0.5 to 8. Default 2. |
| Pulse Speed | Pulses per second, from 0 to 10. Zero (default) holds the overlay steady. |
| Pulse Amount | How far each pulse dims the overlay, from 0 to 1. Default 0.5. |
Pattern
| Setting | What it does |
|---|---|
| Type | Scanlines for holograms, Stripes for warnings, Grid for wireframes, Dots for magic or poison, Hexagons for shields, Noise for electricity, Circuit for tech, Runes for magic marks, Camouflage, Scales, Veins for curses and corruption, Hearts for charm, Drips for slime and paint running down from the top, Grime for mud building up from the bottom, Wet Sheen, Cracks for stone and damage, Foil for rainbow holographic sheen, Glint for a band sweeping across loot, and Embers for charred things. Default Scanlines. |
| Color | Pattern color. HDR values feed bloom. |
| Intensity | Strength of the pattern, from 0 to 2. Default 0.6. |
| Blend | Tint paints the pattern in its color, Additive (default) makes it glow. |
| Scale | Size of one repeat, from 2 to 64: in centimeters on the object's surface, or in screen pixels for Scanlines, Noise, Foil and Glint. Default 8. |
| Speed | How fast the pattern moves, from -10 to 10. Negative values reverse the direction. Default 1. |
| Visibility | Which part of the object gets the pattern: Always, Visible Only (default) or Hidden Only. Always also covers the parts behind other geometry. |
Surface Style
| Setting | What it does |
|---|---|
| Pixel Size | Draw the object in large pixels of this size, from 1 to 32, which also squares off its silhouette. One (default) leaves it sharp. |
| Blur | Blur the object by this many pixels, from 0 to 32, set for a 1080 pixel high picture and grown with taller ones. Only pixels of objects with this profile are mixed, so the outline stays in place and nothing behind bleeds in: censor a sign, hide a spoiler, put one object out of focus. Zero (default) leaves it sharp. |
| Color Levels | Tones per color channel, from 0 to 32, for a flat toon look. Zero (default) keeps every tone. |
| Desaturate | How far the object loses its color, from 0 to 1, for stone, frozen or statue looks. Default 0. |
| Brightness | Brightness multiplier, from 0 to 3. Default 1. |
| Contrast | Contrast around middle gray, from 0 to 2. Default 1. |
| Surface | A material look: None (default), Glass bends the scene through the object, Cloak nearly makes it vanish with shimmering edges, Ghost makes it see-through, cold and wavering, Glitch slices it into jumping bands with split colors. |
| Surface Amount | Strength of the material look, from 0 to 1. Default 1. |
| Distortion | How much the material look bends, wavers or shifts the picture, in pixels, from 0 to 32. Default 4. |
Fill
| Setting | What it does |
|---|---|
| Amount | How far the fill has grown, from 0 to 1. Default 0.5. To change it for one object during play, set fillAmount or pick SetFillAmount in a UnityEvent. |
| Direction | Up (default), Down, Left To Right, Right To Left, or From Point, which spreads outward from Spread Point. |
| Spread Point | World position a From Point fill spreads from, such as where a hit landed. |
| Color | Color of the filled part. Default green. |
| Color Strength | How strongly the filled part takes the fill color, from 0 to 1. Zero leaves only the edge and the layers it limits. Default 0.5. |
| Edge Color | Color of the glowing band along the fill's front. HDR values feed bloom. |
| Edge Width | Width of the band along the front, in pixels, from 0 to 32. Default 3. |
| Limit Others | Whole Object (default) leaves the other parts alone. Filled Part keeps the surface style, overlay and pattern to the filled part, so a state spreads with the fill. Unfilled Part keeps them to the part not filled yet, so it recedes. |
| Spread Seconds | Seconds a From Point fill takes to spread when a hit starts it: a click on a Highlight Trigger, a Moment's Highlight For Seconds, or SpreadFrom from a script. From 0 to 10. Zero shows it at once. Default 0.6. |
Rarity Beam
| Setting | What it does |
|---|---|
| Color | Beam color, often the rarity color. Default purple. |
| Intensity | Brightness of the beam, from 0 to 8. Default 1.5. |
| Width | Width of the beam, as a share of the object's width on screen, from 0.05 to 2. Default 0.35. |
| Height | How high the beam rises, as a share of the screen height, from 0.05 to 1. Default 0.45. |
| Pulse Speed | Pulses per second, from 0 to 10. Zero holds the beam steady. Default 1. |
| Shimmer | Light rippling up the beam, from 0 to 1. Default 0.5. |
Brackets
| Setting | What it does |
|---|---|
| Color | Bracket color. Alpha fades them, HDR values feed bloom. Default red. |
| Thickness | Line thickness in pixels, from 1 to 16. Default 3. |
| Length | Length of each bracket arm, as a fraction of the box's shorter side, from 0.05 to 0.5. Half closes the box. Default 0.25. |
| Padding | Space between the object and the brackets, in pixels, from 0 to 64. Default 10. |
| Pulse Speed | Pulses per second, from 0 to 10. Zero (default) holds the brackets still. |
| Pulse Distance | How far the brackets move out on each pulse, in pixels, from 0 to 32. Default 6. |
Common jobs
Outline the selected unit
- Add a Highlight to the unit and pick Selection Outline.
- Switch the component off in the scene.
- Switch it on when the unit is selected and off when it is deselected, or add a Highlight Trigger in Pointer Click mode.
X-ray an enemy through walls
- Add a Highlight to the enemy and pick Enemy X-Ray.
It draws a red outline, and a red silhouette wherever the enemy is behind a wall. To make your own: press Make Editable Copy, then set Outline > Visibility to Always, or tick See-Through for a silhouette where it is hidden.
Show an ally only while hidden
Pick Ally Through Walls. A blue silhouette appears only while the ally is behind geometry, and nothing shows while it is in plain view.
Flash an enemy red on hit
Call GetComponent<PassForgeHighlight>().Flash(Color.red, 0.15f) from the hit code, or pick Flash in a UnityEvent for a white flash of 0.2 seconds. A Moment's Highlight Flash step does it with no code. The flash works while the component is switched off, so you can keep a switched off Highlight on every enemy just for hit flashes.
A capture point that fills while the player stands on it
- Add a Highlight and pick Progress Fill, or tick Fill in your own profile.
- Each frame the player stands on it, set
highlight.fillAmount = progress;from 0 to 1. Or connect a UI Slider's On Value Changed to SetFillAmount with no code.
The fill rises up the object with a glowing edge. Setting the fill gives this object its own copy of the profile, so other objects sharing it are not affected.
Spread ice from where a hit landed
- Add a Highlight and pick Freeze From Hit Point. It uses Fill with Direction set to From Point.
- Call
highlight.SpreadFrom(hitPoint)from the hit code. With a Highlight Trigger in Pointer Click mode, a click spreads the ice from where it landed with nothing to wire.
The ice grows from the point to the profile's Amount over Spread Seconds, slowing as it reaches the edges.
Blur a sign or a spoiler
Pick Blurred Object or Pixel Object. Only that object is blurred or pixelated, with no Effect Mask and no Volume.
Fade a highlight in and out smoothly
Call FadeIn(0.2f) and FadeOut(0.3f). FadeIn switches the component on and brings it in; FadeOut takes it out and switches it off once it is gone.
From a script
using PassForge.Effects;
using UnityEngine;
public class Selectable : MonoBehaviour
{
[SerializeField] PassForgeHighlight m_Highlight; // switched off in the scene
[SerializeField] HighlightProfile m_Hovered; // two looks for one object
[SerializeField] HighlightProfile m_Selected;
public void Hover(bool on)
{
m_Highlight.profile = m_Hovered; // objects sharing a profile draw together
m_Highlight.enabled = on; // a highlight shows while it is enabled
}
public void Select() { m_Highlight.profile = m_Selected; m_Highlight.FadeIn(0.15f); } // switches it on
public void Deselect() => m_Highlight.FadeOut(0.25f); // switches it off once faded
public void Hit() => m_Highlight.Flash(Color.red, 0.15f); // works while switched off too
public void Captured(float progress) => m_Highlight.fillAmount = progress; // 0 to 1, this object only
public void Frozen(Vector3 hitPoint) => m_Highlight.SpreadFrom(hitPoint); // over the Fill's Spread Seconds
public void FrozenAtOnce(Vector3 hitPoint) => m_Highlight.SpreadFrom(hitPoint, 0f); // zero shows it grown
// After adding a renderer to a highlighted object, or after LODGroup.SetLODs.
public void AfterRenderersChanged() => m_Highlight.RefreshRenderers();
}
Change one object's look without touching others that share the profile:
using PassForge.Effects;
using UnityEngine;
public static class OneObjectLook
{
public static void Enrage(PassForgeHighlight highlight)
{
// The first call gives this object its own copy of its profile; later calls return the same copy.
var own = highlight.UniqueProfile();
own.glow.enabled = true;
own.glow.color = new Color(2f, 0.3f, 0.2f); // HDR red feeds bloom
own.outline.width = 6f; // pixels
}
}
Public members: profile, includeChildren, rendererCount, isFlashing, weight (0 to 1 while fading), fillAmount, UniqueProfile(), SetFillAmount(amount), SetSpreadPoint(position), SpreadFrom(position), SpreadFrom(position, seconds), FadeIn(seconds), FadeOut(seconds), Flash(color, duration) (default 0.2 seconds), Flash(), RefreshRenderers() and PassForgeHighlight.activeCount. A profile's parts are outline, glow, seeThrough, overlay, pattern, stylize, fill, beam and brackets.
Good to know
- Share profiles. Objects with the same profile asset are drawn together. Give every object that should look the same the same profile, rather than a copy each. Setting
fillAmount,SetSpreadPoint,SpreadFromorUniqueProfilegives that one object its own copy, which is drawn separately. - Fading costs a profile. While an object fades in or out, it is drawn on its own rather than with the others sharing its profile, for the length of the fade.
- What it draws. Mesh Renderers, Skinned Mesh Renderers and Sprite Renderers. Particle systems, trails, lines, Tilemaps, Terrain and objects drawn by Entities Graphics are not drawn; the inspector names the ones it leaves out.
- Cutouts. Alpha clipped parts such as leaves, fences, grass and hair cards are outlined by what their texture shows.
- LOD Groups. Only the level the camera shows is drawn, and both levels while they cross-fade. After
LODGroup.SetLODs, callRefreshRenderers(). Past the last level, where Unity culls the object, nothing of it is drawn. - Visible and hidden are told apart with the camera depth texture. Transparent objects do not write it, so a transparent object never hides a highlighted one.
- 2D. It works on the URP 2D Renderer, following the sprites' flip, shape and 2D Animation skinning. A part counts as hidden where a sprite drawn after it covers it, at least half opaque, as behind a wall in 3D. Object effects draw over a sprite, so a look cannot make the sprite itself translucent.
- Spine. Skeletons are highlighted whole, by what their attachments show. A single slot or bone, and a Skeleton Graphic on a Canvas, are not drawn.
- Brackets frame the object's bounds on screen, so they also surround hidden parts. Up to 16 objects per profile get brackets.
- Surface Style changes only the parts the camera sees. Glass, Cloak and Ghost are built from the picture around the object, so they read best against busy backgrounds.
- Cost. Per distinct profile on screen: one draw of each highlighted renderer into a mask, a few passes for an outline (half resolution from 6 pixels wide), a small blur chain for glow, and one composite. All flashing objects share one extra pass. Highlighted renderers are drawn one by one, so it is not meant for thousands of objects.
- Time. Flashes and spreading fills count game time in Play Mode. Fades count real time, so they keep their pace in a pause menu or in slow motion.
- No Volume needed. A Highlight shows as soon as Set Up Effects has run. It draws in the Before Post-Processing graph, so HDR colors feed bloom.
- Edit Mode. Highlights show in the Scene and Game views. Animated looks move outside Play Mode only while Preview In Edit Mode is on.
- One per object. Unity allows one Highlight on an object. To switch between looks, change
profile.