Bordercraft – Selection Outline for URP
Bordercraft enqueues its passes only when something is actually outlined: no texture allocated, no ... WHEN IT DOES RUN, IT ONLY SHADES WHAT IT HAS TO ... TWO STYLES ... SEVERAL LOOKS AT ONCE
by OwlHours
Price History +
Requirements
- Unity 6000.0 or later. Tested on 6000.0, 6000.3, 6000.4 and 6000.5.
- Universal Render Pipeline 17.0.0 or later
- RenderGraph enabled (default in Unity 6)
Not compatible with the Built-in Render Pipeline or HDRP.
Not tested with URP's 2D Renderer.
Tested on Windows and Android, including MSAA and a render scale below 1.
iOS, console and VR/XR: not tested, not officially supported.
Rendering Layers
Selection is driven by a reserved Rendering Layer Mask bit per channel, so the package permanently reserves the top four bits (28-31) of every GameObject's mask - one per channel, whether or not you configure all four. URP projects typically use only the low bits for Light Layers, but check Project Settings > Tags and Layers > Rendering Layers if your project already uses the high ones.
Installation
- Import the package. A Setup Wizard opens automatically on first import, finds your URP Renderer assets, adds the Outline Renderer Feature to the ones you pick, and creates and assigns a default profile.
- No external dependencies or third-party packages required.
- No project Layer or Tag setup.
What's included
- Runtime and Editor assemblies, with full, commented C# source
- Four shaders: silhouette, dilate, separable blur, composite
- Setup Wizard, plus custom Inspectors for the Renderer Feature, the profile and the Outline Target component
- A default Outline Profile, ready to use
- A demo scene built from Unity primitives, with an on-screen panel for every feature
- Full documentation (setup guide, runtime API reference, known limitations, troubleshooting, changelog)
Not included
The character and the environment shown in the video and screenshots are not part of the package.
Bordercraft draws a selection outline around any GameObject in one line of code, and gets out of the way when you are not using it.
WHEN NOTHING IS SELECTED, NOTHING RUNS
A screen-space effect normally runs its passes every frame while its Renderer Feature is enabled. Bordercraft enqueues its passes only when something is actually outlined: no texture allocated, no pass added. With nothing selected, the Frame Debugger shows none of Bordercraft's passes in the frame at all.
WHEN IT DOES RUN, IT ONLY SHADES WHAT IT HAS TO
Every pass after the silhouette is clipped to the on-screen box around the outlined object, so cost follows how much of the screen the object covers rather than your render resolution.
THREE WAYS TO HANDLE WALLS
- Always: the outline is seen through anything in front of it.
- Where Visible: it is occluded like any other object.
- Where Hidden: it appears ONLY on the part something else is covering, and disappears once the object is in the clear. Decided per pixel, so a half-covered object is outlined on the covered half only.
TWO STYLES
- Soft: a blurred glow that reads over any background.
- Hard: a thin crisp line with no blur pass at all.
MOTION ON TOP OF EITHER STYLE
Bumps travelling around the object, the whole outline breathing in and out together, or stepped stop-motion jitter. Wave speed can be changed while the game runs, so an outline can race like a heartbeat and settle back down smoothly.
SEVERAL LOOKS AT ONCE
Four channels, each with its own profile and its own idle gate, so enemies, loot and interactables can each have their own outline on screen together.
ONE LINE, OR NONE
Outliner.SetSelected(myGameObject, true);
That is the whole integration: no component to add first, no scene setup, no project Layer or Tag configuration.
Would rather not write code? Add an Outline Target component to the object and toggle it like any other component.
Need the look at runtime? Outliner.GetProfile() returns the profile a channel is drawing with, ready to change.
SETUP
A wizard opens itself the first time you import, finds your URP Renderer assets, adds the feature to the ones you pick, and creates and assigns a default profile. Nothing to wire up by hand.
DOCUMENTATION
Full setup guide, runtime API reference, known limitations, troubleshooting and changelog are available at https://owlhours.space/tools/bordercraft-selection-outline-urp/docs/
If Bordercraft works out for you, a review helps more than you would think: it is how other developers find the package at all. If something does not work, write to us first and we will fix it.