Quick Start

IMPORTANT

The asset supports URP and Built-in LTS versions from 2021.3 and newer.

The built-in version of the Advanced Edge Detection asset doesn't support custom data edge detection (vertex colors, custom textures, objectsIDs).

The asset doesn't support built-in fog, VR and WebGL.

IMPORTING

After downloading the asset, import the appropriate .unitypackage file based on your Unity version and SRP (either Built-in.unitypackage, URP.unitypackage, or URP2022.unitypackage).

Include shaders that are used by the asset in the Always Included Shaders tab in Project Settings/Graphics:

Depending on the rendering pipeline shaders may vary. You can find all the shaders you need to include in the list can be found in Advanced-Edge-Detection\(Built-in/URP/URP2022)\Shaders:

If that doesn't work, and the edges do not show up, with a "cannot create required material because shader is null" message, you should move the shaders to the "Resources" folder (name folder "resources" and put the shaders you want to get included in the build into that folder).

Built-in

Ensure you have the Shader Graph installed in your project to easily explore demo scenes and examples.

  1. Navigate to your main camera object in your scene.

  2. Add the AdvancedEdgeDetection.cs script to your camera.

Use the 'Update' button when changing the settings of the stencil mask or adding new game objects to the stencil mask layer.

URP

Make sure your URP asset has depth texture enabled.

Add AdvancedEdgeDetection feature to your URP data asset.

If you encounter issues setting up, you can use the provided URP settings asset. Adjust it via the Graphics section in your project settings. Ensure that the render asset is not overridden in the Quality tab.

Make sure in the Quality tab render asset is not overridden.

ISSUES

If you encounter any difficulties in using, implementing, or understanding the asset, please feel free to reach out to me at izzynab.publisher@gmail.com or via Discord.

Last updated