Can We Use Video As A Animated UI

I wonder is it posible a green screen video as a UI element ?
If you would help me, I will be very appericiate.

You can’t use a video directly with UIToolkit, but you can use a render texture as the background of a VisualElement, or using Image.image.

To decode your video inside a RenderTexture, there is the VideoPlayer component that might help you.

The Chroma keyed pixels will need to be changed to transparent in the process.

1 Like