- Home /
I need help on handheld.playfullscreen code,
i found this code hoping that i could play a video in an object plane using this code, but when i play it , nothing happens. this is the code, i know that this issue has already been solve but pls help me,, i got my unity 5 here and quicktime installed..
using UnityEngine; using System.Collections;
public class movie : MonoBehaviour { public string moviepath = "free.mp4"; // Use this for initialization void Start () { Invoke ("plsPlay", 1.0f);
}
void plsPlay () {
Handheld.PlayFullScreenMovie (moviepath, Color.black, FullScreenMovieControlMode.Full);
}
// Update is called once per frame
void Update () {
}
By using this code you can not play video on plane. For that you need to use $$anonymous$$ovieTexture class. Check out this link : http://docs.unity3d.com/$$anonymous$$anual/class-$$anonymous$$ovieTexture.html
Your answer
Follow this Question
Related Questions
Video textures appearing white in Samsung Gear Vr Android unity 0 Answers
Record and Share Game Play Video in WebGL 0 Answers
UnityEngine.VR.WSA.WebCam Not Found During Build 3 Answers
Playing Video in Unity 5 (on mobile) 4 Answers
Framerate drop after 1min playback with Cardboard and Easy Movie Texture 1 Answer