Version: 2017.2
public void Stop ();

描述

停止播放电影,并将其倒回到开头。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public MovieTexture movTexture; void Start() { GetComponent<Renderer>().material.mainTexture = movTexture; movTexture.Play(); } void Update() { if (Input.GetKeyDown(KeyCode.Space)) movTexture.Stop(); } }