Sort 3D GameObjects with 2D sprites in the same scene.
When you enable the Sort as 2D property, if 3D meshes have the same depth, Unity renders them like overlapping 2D sprites instead of intersecting meshes.
Follow these steps:
Important: Enabling the Sort as 2D setting clears the object’s depth information which means you cannot use it with depth-based post-processing effects. If you want to use these kind of effects, use Unity’s default behavior that renders sprites and meshes based on their world-space depth.