A great place to start with the Depth API in Unity is the GitHub sample. It has a set of simple scenes that showcase features such as hand removal and environment depth bias. It also contains a set of support packages that provide useful shaders.
Sample
The sample contains various use cases for Depth API. More detailed information is covered in the documentation on the GitHub page itself.
OcclusionToggler
This scene showcases the general setup of the occlusion feature and how to switch between different modes.
SceneAPIPlacement
This scene covers the usage of EnvironmentDepthBias.
HandsRemoval
This scene covers the usage of the hands removal feature and replaces them with a cutout version of tracked hands to provide an alternative way of having hands occlusion.
Support packages
The GitHub repository contains two useful packages that supply shaders with occlusion support, such as the standard Unity shaders. The documentation covers their usage and installation in more detail.
The com.meta.xr.depthapi package is the first package and contains standard shaders for BiRP.
Unity shader
Depth API shader
Standard
Occlusion Standard
ParticleStandardUnlit
OcclusionParticleStandardUnlit
The com.meta.xr.depthapi.urp package is the second package and contains standard shaders for URP.
These are the shaders that come prepackaged with the Depth API for URP:
Unity Shader
Depth API shader
Lit
Occlusion Lit
Unlit
Occlusion Unlit
Simple Lit
Occlusion Simple Lit
Baked Lit
Occlusion Baked Lit
Particles / Unlit (/Lit / Simple Lit)
Occlusion Particles / Unlit (/Lit / Simple Lit)
Learn more
You can find the samples and support packages here, along with detailed documentation on their usage.