码迷,mamicode.com
首页 > 其他好文 > 详细

NGUI播放视频、全屏等

时间:2014-05-07 03:13:16      阅读:426      评论:0      收藏:0      [点我收藏+]

标签:ngui   视频   


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播放视频、全屏等

标签:ngui   视频   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!