Outline Objects

Universal Render Pipeline


Outline objects with just one material. Set up mesh outlines one click. Infinitely customizable.




Outline Objects enables you to instantly outline 2D and 3D mesh objects in your Unity game. To apply, you simply drag and drop the outline material into a second material input slot onto any mesh that you would like to receive an outline. Quick, easy, and well-supported.

You can customize your outlines for each mesh. Do you want one object outlined in a thin red line and a second object outlined with a thick blue pulsing line? You got it.

The outline is configured using world space units and is rendered in world space. In other words, you can easily set the exact size of the object's outline in world space units. As objects move closer or further from the camera, the outline remains the same size relative to the object.

You can set any outline color on a per-object (i.e., per material) basis.

You can also use the Vertex Color (R) channel to attenuate the outline thickness for more artistic control. A Vertex Color (R) value of 0 fully attenuates the Outline Thickness, whereas a Vertex Color (R) value of 1 applies no attenuation to the Outline Thickness. An example of this functionality is provided with the VP_Sphere in the demo.

You can also scale the outline size down as objects get further away from the camera if you'd like the effect to only appear for nearby objects.

Finally, you can use a noise texture to attenuate the outline thickness based on the vertex distance from the object center. The noise texture is sampled along the x axis only. The Noise Framerate configures how frequently we jump to a new randomly offset position along the x-axis. Set this to zero to disable offset jumping. The Noise Frequency configures the rate at which the distance samples across the x-axis of the noise texture (e.g., setting frequency to 1 causes the shader to sample at a rate of 1 : 1 in world space units - in other words, 1 unit of distance will be equivalent to 1 repeat of the noise texture).

Shader Properties include the following:

  • _OutlineColor
  • _OutlineThickness
  • _CompleteFalloffDistance
  • _NoiseTexture
  • _NoiseFrequency
  • _NoiseFramerate

These Shader Properties are all accessible as standard material properties are during runtime, except for the three toggles - _UseVertexColors, _AttenuateByDistance, and _RandomOffset, which are shader feature keywords compiled during build.

How to Install Outline Objects for Unity

1. Import the Stylized Outline asset into your project.

2. Identify an object that you would like to outline in your scene and open it in the Inspector.

3. In the Mesh Renderer component, click the + button under the Materials slot.

4. Drag and drop the M_StylizedOutline

No items found.