Hello,
I’ve digged around the web and I havn’t found a clear example of what I’m trying to achieve.
Say this picture with all the passes from HDRP that can be found in the doc here Redirecting to latest version of com.unity.render-pipelines.high-definition
Say my CS script function
using UnityEngine;
public class MainCamera : MonoBehaviour {
void OnPreCull () {
Debug.Log("This function was called on the specific pass");
}
}
OnPreCull doesn’t work anymore as said here Feedback Wanted: Scriptable Render Pipelines page-8#post-3408481
How can I let’s say inject my code on “BeforeRendering” like :
using UnityEngine;
public class MainCamera : MonoBehaviour {
void BeforeRendering() {
Debug.Log("This function was called on the specific pass");
}
}
Is there a way to run my CS function at a certain point of the HDRP passes ?
I tryed to use the custom pass script, but it seem to require a material, and it was pretty obscure, I just want my CS function to run at a certain point.
Thank you for any answers !