- Home /
Question by
Chris12345 · Apr 06, 2013 at 08:32 PM ·
errorcompiler
Script Compiler error?
Compiler error when i build for IOS runs fine in editor. and it is this script that is causing the error.
using UnityEngine;
using System.Collections;
[RequireComponent (typeof(AudioSource))]
public class splashpager : MonoBehaviour {
public MovieTexture movie;
void OnGUI()
{
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), movie);
}
void Start ()
{
audio.clip = movie.audioClip;
audio.Play();
movie.Play();
}
}
Comment
Best Answer
Answer by ByteSheep · Apr 06, 2013 at 08:38 PM
http://answers.unity3d.com/questions/377854/why-cannot-build-movie-texture-on-android.html
Movie Texture isn't supported on IOS and Android. But at the bottom of this doc page there is info on playing movie clips on IOS:
http://docs.unity3d.com/Documentation/Components/class-MovieTexture.html
Your answer
Follow this Question
Related Questions
Parser Error. 1 Answer
please help island demo compieler error 2 Answers
How to not compile un-used scripts ? 1 Answer
Internal compiler error 2 Answers
Unity Internal Compiler Error, not there in Editor 0 Answers