Configure render pipeline
Set up a render pipeline so the camera, ToF, stereo depth, and raster LiDAR sensors can capture data.
Camera, ToF, Stereo Depth, and Raster LiDAR sensors read back from the render pipeline, so your project must use the Universal Render Pipeline (URP) or the High Definition Render Pipeline (HDRP).
Install a render pipeline package
If your project doesn't already use URP or HDRP:
- Open Window > Package Manager.
- Install Universal RP (
com.unity.render-pipelines.universal) or High Definition RP (com.unity.render-pipelines.high-definition), depending on which pipeline your project targets. - Create a render pipeline asset (menu: Assets > Create > Rendering > URP Asset or HDRP Asset) and assign it in Edit > Project Settings > Graphics > Scriptable Render Pipeline Settings.
Refer to Unity's URP and HDRP documentation for full installation and configuration steps.
Render pass setup
Sensor components register the render passes they need automatically at runtime, through SRPSupport:
- On URP,
SRPSupportadds aURPCaptureRendererFeature(named Simulation Capture in the Inspector window) to the active URP renderer's feature list if one isn't already present. - On HDRP,
SRPSupportcreates aCustomPassVolumeGameObject and adds anHDRPCallbackPassto it.
You don't need to add these render features or custom passes manually. This setup runs automatically at startup whenever a URP or HDRP asset is active, so no additional configuration is required beyond assigning a render pipeline asset.