Version: Unity 6.5 Alpha (6000.5)
Language : English
Pixel Perfect Camera component reference for URP
Render 3D GameObjects in 2D scenes

3D GameObjects in 2D URP scenes

Render and sort 3D GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
as if they were 2D spritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
in your 2D URP project.

When Unity renders 3D GameObjects in a 2D sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
, it usually renders them clipping into each other on the same z-position. By using the following properties and features, Unity renders the 3D GameObjects as if they were 2D sprites, so that they would overlap each other rather than intersect.

You can use features that usually only work with 2D sprites with these 3D GameObjects, such as allowing these 3D GameObjects to receive lighting from 2D Lights by using a compatible shaderA program that runs on the GPU. More info
See in Glossary
, or interact with Sprite MasksA texture which defines which areas of an underlying image to reveal or hide. More info
See in Glossary
. These 3D GameObjects can also be sorted with sprites in the 2D renderer sorting queue when Sort 3D As 2D is enabled in a Sorting Group.

Topic Description
Render 3D GameObjects in 2D scenes Create custom shaders and materials to render 3D GameObjects in 2D scenes.
Set 3D GameObjects to interact with Sprite masks Use Sprite masks with 3D GameObjects.
Sort 3D GameObjects with 2D sprites Sort 3D GameObjects with 2D GameObjects in the same scene and control the order they’re rendered.
Pixel Perfect Camera component reference for URP
Render 3D GameObjects in 2D scenes