I want to make wind work on a project separate from Book of the Dead demo. I've been able to import the tree assets, plus the WindControl script and two helpers that make it work (HDRPCallbackAttribute and WindControlHelpers). However, there is one tiny line of code in the ported WindControl script that shows an error:

HDRenderPipeline.OnPrepareCamera += SetupGPUData;

SetupGPUData is a simple method which requires an HDCamera and a CommandBuffer as parameters. But HDRenderPipeline.OnPrepareCamera is not an existing event anymore (presumably because of updates to the HD render pipeline).

Where was the .OnPrepareCamera event moved?

I tried rolling back to the HD render pipeline version that the demo was using, but that made no difference to the error.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.