URP_BlitRenderFeature
URP_BlitRenderFeature copied to clipboard
RenderTargetHandle' is obsolete:
I get this error after updating my project to Unity 6 is there any solution to that? Assets\Scripts\Blit.cs(42,4): error CS0619: 'RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'
If you use the feature for blitting to the camera (like a post-process effect), Unity 2022.2+ introduced it's own Fullscreen Pass Renderer Feature which can replace this, as well as a Fullscreen Graph type.
If you use the feature for copying the camera to your own texture, there's a 2022.1 branch that uses RTHandles. Haven't tested but it might work in newer versions. Note that for Unity 6 it would require "compatibility" mode (should be set automatically if upgrading iirc), which lets features written in this way still function. But it may be more performant for them to be re-written using the newer RenderGraph API. It's not something I've looked into that much so I don't have plans to update this repo currently, but there may be examples on the docs & forums/discussions.