Forum rules - please read before posting.

Movie as title screen background

I have a movie playing and the title menu is showing however I can't interact with the menu.
Is there a way to have the movie on a plane in the background and the title menu show up and work normally? 
Without the movie, just a plain texture it works perfect, the cursor changes to ingame as set and all is OK.
I add the play movie to the title menu and it shows the menu but no cursor change and can not interact with the menu.
I need a short 5 sec. vid to loop as a background.
Can I do this as a movie or maybe as a series of textures playing as a picture?

Comments

  • Answer to my own problem..
    Create a new scene titlescene like the docs say.
    Create A UI rawimage
    On Canvas select dropdown Render Mode Screen Space-Camera
    Drag/drop your main camera into the camera box
    On the rawimage child on anchor click that while holding ALT-SHIFT and select the bottom right (full screen image)
    Add the script (below) to the rawimage child.
    Add your .ogv converted video to the box...
    YAY!

    (You might want to just remove the audio source parts and use AC action lists)

    using UnityEngine;
    using System.Collections;
    using UnityEngine.UI;

    [RequireComponent (typeof(AudioSource))]

    public class PlayVideo : MonoBehaviour {

        public MovieTexture movie;
        private AudioSource audio;

    void Start () {
            GetComponent<RawImage>().texture = movie as MovieTexture;
            audio = GetComponent<AudioSource>();
            audio.clip = movie.audioClip;
            movie.loop = true;
            movie.Play();
            audio.Play();

    }
    void Update () {

    }
    }

  • Nice tip!  Be aware that you can also use the Engine: Play movie clip Action to play a movie on a Material that's assigned to a plane for a similar effect.
  • Tried that but the menu was able to be seen but not interacted with. and the cursor would not change from the arrow to the ingame ones.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.