Fading a Video Playing From the VisionOSVideoComponent

I was wondering if their was a way to possibly fade out a mesh that is playing a video from VisionOSVideoComponent. (Specifically a spatial Video).

I’ve tried setting the material on the mesh to transparent and controlling the alpha. Seems that the meshes material receives a different material when the video plays that I’m not sure how to tap into.

That’s correct; VisionOSVideoComponent uses RealityKit’s VideoMaterial, which has very few options to control its appearance (and no way to change its opacity). If you’re interested in having more control over how video materials are rendered, I’d suggest raising the issue with Apple via their Feedback Assistant.

The other option is using the VideoPlayer component, which renders video to a RenderTexture that you can use in more typical materials (such as shader graph materials).

1 Like