Sort 3D GameObjects with 2D sprites
Sort 3D GameObjects with 2D GameObjects in the same scene and control the order they're rendered.
Read time 1 minuteLast updated 22 days ago
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:
- Add a Sorting Group component to the 3D GameObject.
- Enable Sort as 2D in the Sorting Group property settings.
- Assign Sorting Layers and Order in Layer values to determine the 3D renderer's position in the render queue.