Start a new project with the 2D URP Template in Unity Hub
If you want to add the package manually from Package Manager follow the steps in the setup guide in the manual.
What can you do?
Try it out and let us know what you think of the additions and improvements. We want to know what works as expected, what doesn’t and what is missing.
Feature Examples that show a feature in action; and
Applied Examples that show features being used to solve a particular problem.
For this release we have added the following samples:
VFX Graph
This shows the 2D Renderer working together with VFX Graph.
Emissive
This uses the new 2D Light Texture Node in Shader Graph. The Light Textures generated by the 2D Renderer are sampled and modulated by an Emissive mask Secondary Texture on the Sprite. The sample also includes a Bloom post-process to extend the glow beyond the pixels of the Sprite.
Would it make sense to reevaluate the roadmap for the 2D features due to the reduced team size working on the 2d feature set? I think the community could tell (i.e. vote) which features are currently missing and what would be probably the most needed features at the moment. For some of the major features we’re missing, we wait for quite a while now.
Opening the development is a good thing and some of the community members have already started to write custom code, but there are still limitations and it would be nice if we could get rid of those.
While Unity adding feature officially is going to be nice, what I think it needs right now is to open up the API, Fix the missing setter on properties and give us power to be able to customize the system easier.
For example, 2Dlights are so limited right now because it just has fixed amount of types, we should be able to derive from the base 2Dlight and make our own.
I just upgraded to 2021.2.0f1 and with it URP-12.1.0. Unfortunately, my full screen post-processing effect has stopped working (I expected this as I had tried beta versions of 2021.2, and had the same result). The work around that I’ve been using since upgrading to URP is detailed here . It involves using BlitRenderFeature and camera stacking.
What I’d like to know is what is the supported method for creating custom full screen post-processing effects using URP?
To be clear, all I’m trying to accomplish is to apply a custom shader (that I can control via a MonoBehaviour) to a camera in order to achieve a full screen custom post-processing effect. The problem seems to be that URP’s 2D renderer (not the Forward Renderer) does not support either Custom Volume Overrides or Custom Renderer Features. Maybe this has changed with URP-12.x and I just haven’t found it yet, but I don’t see anything in URP’s PostProcessing nor in the Customizing URP section.
@rustum , maybe you or someone else on the URP team can address this?
@kayroice & @enhawk thank you for flagging this issue. Could you create a bug report and post the bug id in this thread? Then we can more easily dig into this issue.
Thanks!
@kayroice & @enhawk We added support for Renderer Features to the 2D Renderer in URP 12 (2021.2). I’ve updated the 2D Renderer Samples with a simple example. Get the project here, and let us know if it works for you.
@rustum There seems to be a bug in 2D Renderer (URP12) related to a combination of PixelPerfect and PostProcessing.
Only the bottom left portion of the view is rendered when PostProcessing is enabled and PixelPerfect component is set to Upscale Render Texture. (case 1377086).
The easies way to reproduce is using 2d-renderer-samples and loading scene 2d-renderer-samples-21.2\Assets\Samples\2D Renderer\01 Feature Samples\06 Post Processing_Post Processing.unity.
At the scene camera add Pixel Perfect Camera component and set Grid Snapping to Upscale Render Texture.
Change Game view tab from Free Aspect to 1920x1080.
Enabling/disabling Camera → Rendering → PostProcessing will cause game view “zooming” in and out. The same happens by leaving PostProcessing enabled and disabling/enabling PixelPerfect component.
Do you have opaque sprite shader?
The Drawcall and overdraw of the current 2d renderers are very huge and not friendly to mobile platforms.
Some features are only available in the new version of Unity. I don’t know if they will be ported to Unity 2019. Can there be a centralized description that shows the minimum Unity supported version of various features.
There seems to be some issues with the 2D shadows. This was tested in a new project using the 2d URP template in 2021.2.3f1. If a sprite with a shadow caster is close to a light, the shadows do not render properly:
Also there seems to be shadow artifacts with volumetric lights in some cases. I created a simple scene with a 2d spot light duplicated a few times. Moving around a square shadow caster results in the artifacts below, or does not produce shadows at all:
I found these same bugs when I first tried 2021.2.0.
We do not support split opaque and transparent rendering at the moment, but it is on our backlog and one of our priorities to improve performance. We will keep you posted once we have something to show.
Hi, I’m new here. Thanks for this thread, I have my exam tomorrow and I find a lot of tips and tricks here that my professor didn’t even mention it Thanks