Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MovieTexture.Pause

Switch to Manual
public function Pause(): void;

Description

Pauses playing the movie.

// Assigns a movie texture to the current transform and pauses it immediately

var movTexture : MovieTexture;

function Start () { GetComponent.<Renderer>().material.mainTexture = movTexture; movTexture.Pause(); }