Search Unity

Question How to play a video on background in the scene?

Discussion in 'Audio & Video' started by wjsem, Apr 11, 2023.

  1. wjsem

    wjsem

    Joined:
    Sep 6, 2021
    Posts:
    1
    Hi everyone!

    I'm trying use a video I have as background image. I already made everything with the render texture and works perfectly (I even added the video player and enabled the loop). However when I try to add any component (Image or buttons) they show behind the render texture. I tried to change the layers without success. How I could make the video to be played as an animated background on my scene without covering other elements? Do i have to use something different?
     
  2. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    I assume you added the render texture on a RawImage in the UI? It is probably an issue with the ordering of your UI. Lower UI elements in the Hierarchy window will be rendered on the top. So make sure your background image is higher than the rest of your UI and it should work.