Symptoms:
- My content draws on top of the simulated environment.
- My content is not being occluded correctly by objects in the simulation.
Cause:
Unity Mars composites your simulated content on top of the simulated environment, mirroring the compositing that occurs on real AR devices.
The visual behavior you are seeing in Simulation View is designed to reflect how the content will be rendered on a real device.
Resolution:
Create occlusion surfaces in your scene most easily by creating plane visualizers, either from the MARS panel (Window > MARS > MARS Panel > Create > Presets > Planes Visualizer) or in the Hierarchy, (+ > MARS > Data Visualizers > Plane Visualizer).
These visualizers are set up with occlusion shaders, which will block content from rendering through the surface. This works on device, and Simulation View.