I am not sure this is the correct forum to post this question, but since passthrough is enabled on Oculus with the ARCameraManager component, I think it is.
The way to toggle passthrough using ARFoundation is as simple as this
private void togglePassthrough(bool turnOn) {
arCameraManager.enabled = turnOn;//disable passthrough
Camera.main.clearFlags = turnOn ? CameraClearFlags.SolidColor : CameraClearFlags.Skybox;
}
However, I want to have a smooth transition. A fade in/out, similar to when you step out of the boundaries you set the virtual content fades away.
Is there a way to accomplish this with ARFoundation and/or XR Interaction Toolkit?