This should be a quick fix for an experienced programmer, but I’m a designer. I’m developing a Vuforia app, and at this point I only need to build a version that accomplishes the image target recognition and the autoplay function on OGG videos that are placed as textures on planes in the scene. Everything functions perfectly in the Unity Editor, but when I build for Android, I immediately get console errors reading:

Error CS0246- the type or namespace ‘MovieTexture’ could not be found. Are you missing a using directive or an assembly reference?

2 separate errors, (8,11) & (17,13)

Besides the minimum Unity & Vuforia Prefabs required to run the app, this is the only standalone script in the project, so I’m fairly sure there’s some sort of format or syntax error within the script itself.

Heres the Script:

`using UnityEngine;
using System.Collections;

public class OGGPLAY : MonoBehaviour {

// Use this for initialization


// Update is called once per frame

if (UnityEngine.Input.GetButtonDown(“Jump”))

        UnityEngine.Renderer r = GetComponent<UnityEngine.Renderer>();



Any assistance would be greatly appreciated, Thanks…

Movie Textures are not supported on Android, that is why it works in the Editor but won’t build for Android. You need to use Handheld.PlayFullScreenMovie, and store all your videos in a folder name StreamingAssets.

Source : MovieTexture manual page

Movie Textures are not supported on Android. Instead, full-screen streaming playback is provided using Handheld.PlayFullScreenMovie.

I found a workaround by using this asset . Works fantastic