mao-test-h / URPGlitch

Glitch effect with URP(Universal Render Pipeline).
MIT License
35 stars 5 forks source link

Unity 6 Compatability #13

Open Screamycat opened 4 months ago

Screamycat commented 4 months ago

It seems though as for the newer versions of unity, or rather the newest version being unity 6, errors appear that I myself have tried to fix with no avail. I would love a updated version of this repo as I have not found anything greater than this effect!

Assets\URPGlitch\Runtime\AnalogGlitch\AnalogGlitchRenderPass.cs(56,30): warning CS0672: Member 'AnalogGlitchRenderPass.Execute(ScriptableRenderContext, ref RenderingData)' overrides obsolete member 'ScriptableRenderPass.Execute(ScriptableRenderContext, ref RenderingData)'. Add the Obsolete attribute to 'AnalogGlitchRenderPass.Execute(ScriptableRenderContext, ref RenderingData)'.

Assets\URPGlitch\Runtime\DigitalGlitch\DigitalGlitchRenderPass.cs(71,30): warning CS0672: Member 'DigitalGlitchRenderPass.Configure(CommandBuffer, RenderTextureDescriptor)' overrides obsolete member 'ScriptableRenderPass.Configure(CommandBuffer, RenderTextureDescriptor)'. Add the Obsolete attribute to 'DigitalGlitchRenderPass.Configure(CommandBuffer, RenderTextureDescriptor)'.

Assets\URPGlitch\Runtime\DigitalGlitch\DigitalGlitchRenderPass.cs(86,30): warning CS0672: Member 'DigitalGlitchRenderPass.Execute(ScriptableRenderContext, ref RenderingData)' overrides obsolete member 'ScriptableRenderPass.Execute(ScriptableRenderContext, ref RenderingData)'. Add the Obsolete attribute to 'DigitalGlitchRenderPass.Execute(ScriptableRenderContext, ref RenderingData)'.

Assets\URPGlitch\Runtime\AnalogGlitch\AnalogGlitchRenderPass.cs(27,9): error CS0619: 'RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'

Assets\URPGlitch\Runtime\DigitalGlitch\DigitalGlitchRenderPass.cs(29,9): error CS0619: 'RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'

Assets\URPGlitch\Runtime\DigitalGlitch\DigitalGlitchRenderPass.cs(30,9): error CS0619: 'RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'

Assets\URPGlitch\Runtime\DigitalGlitch\DigitalGlitchRenderPass.cs(31,9): error CS0619: 'RenderTargetHandle' is obsolete: 'Deprecated in favor of RTHandle'
ditpowuh commented 3 months ago

Hi!

I've made a fork over at here that applies a temporary fix, removing the deprecation errors. However, it uses compatibility mode, so the Render Graph API is disabled, if you are using that. If not, it should work and be fine - you will get a bunch of warnings in the console though, and in future updates of Unity, it may not work anymore.