記得專案 Player Setting 要啟用 SD 卡 功能

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

    void OnGUI () {
        if (GUI.Button (new Rect (10,10,100,50), "PLAY")){
            Handheld.PlayFullScreenMovie("file:///sdcard/a.mp4", Color.black, FullScreenMovieControlMode.Hidden);
        }
    }

}




創作者介紹
創作者 彥霖 實驗筆記 的頭像
黃彥霖

彥霖 實驗筆記

黃彥霖 發表在 痞客邦 留言(0) 人氣( 689 )