首页 > 其他 > 详细

NGUI播放视频、全屏等

时间:2014-05-07 03:12:17      阅读:366      评论:0      收藏:0      [点我收藏+]

using UnityEngine;
using System.Collections;


public class moive : MonoBehaviour {

public MovieTexture movTexture;
public GameObject moive_texture;
public GameObject quan_bt;
public GameObject quit_bt;
public GameObject play_bt;
// Use this for initialization
void Start () {

quan_bt.SetActive(true);
quit_bt.SetActive(false);
}

// Update is called once per frame
void Update () {

}
void play()
{
movTexture.Play();
}
void quanping()
{
play_bt.SetActive(false);
quan_bt.SetActive(false);
quit_bt.SetActive(true);
moive_texture.transform.localScale = new Vector3 (1024.0f,768.0f,1.0f);//根据分辨率设置全屏大小
}
void quit()
{
play_bt.SetActive(true);
quan_bt.SetActive(true);
quit_bt.SetActive(false);
moive_texture.transform.localScale = new Vector3 (800.0f,600.0f,1.0f);//初始大小
}
}

NGUI播放视频、全屏等,布布扣,bubuko.com

NGUI播放视频、全屏等

原文:http://blog.csdn.net/woailvmengmeng/article/details/25058651

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!