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();
}
Page last updated: 2011-3-18