Question by
Hyp3ri0nn · Sep 21, 2017 at 06:45 PM ·
androiduibackgroundmovie
How can we add movie as a background for Android
Below is my script
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class StartVideo : MonoBehaviour {
public MovieTexture movie;
RawImage rawImageComp;
void Start () {
GetComponent<RawImage>().texture = movie as MovieTexture;
movie.Play();
movie.loop = true;
}
}
I am trying to make a background movie for Android application, but when i try to build i am getting error like this:
Assets/StartVideo.cs(7,13): error CS0246: The type or namespace name `MovieTexture' could not be found. Are you missing an assembly reference?
Comment