播放视频

作者:追风剑情 发布于:2016-1-13 17:23 分类:Unity3d

Android

把mp4文件放到Assets\StreamingAssets下面

using UnityEngine;
using System.Collections;

public class MovieTest : MonoBehaviour {

	void Start () {
             if (Application.platform == RuntimePlatform.Android)
             {
                 Handheld.PlayFullScreenMovie("Game.mp4", Color.black, FullScreenMovieControlMode.Hidden);
             }
	}
}

 

标签: Unity3d

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号