MovieTexture.Pause 暂停
function Pause () : void
Description描述
Pauses playing the movie.
暂停播放影片。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public MovieTexture movTexture;
void Start() {
renderer.material.mainTexture = movTexture;
movTexture.Pause();
}
}
// Assigns a movie texture to the current transform and pauses it immediately
//知道一个MovieTexture到当前的变换,立即暂定
var movTexture : MovieTexture;
function Start () {
renderer.material.mainTexture = movTexture;
movTexture.Pause();
}
最后修改:2011年3月18日 Friday 11:14