Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

MovieTexture

Namespace: UnityEngine

/

Inherits from: Texture

Description

Movie Textures (Pro only) are textures onto which movies are played back.

They can be used for cutscene movie sequences, or to render movies into the scene itself.

Variables

audioClipReturns the AudioClip belonging to the MovieTexture.
durationThe time, in seconds, that the movie takes to play back completely.
isPlayingReturns whether the movie is playing or not.
isReadyToPlayIf the movie is downloading from a web site, this returns if enough data has been downloaded so playback should be able to start without interruptions.
loopSet this to true to make the movie loop.

Functions

PausePauses playing the movie.
PlayStarts playing the movie.
StopStops playing the movie, and rewinds it to the beginning.

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameThe name of the object.
anisoLevelAnisotropic filtering level of the texture.
filterModeFiltering mode of the texture.
heightHeight of the texture in pixels. (Read Only)
mipMapBiasMip map bias of the texture.
widthWidth of the texture in pixels. (Read Only)
wrapModeWrap mode (Repeat or Clamp) of the texture.

Functions

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the game object.
GetNativeTextureIDRetrieve native ('hardware') handle to a texture.
GetNativeTexturePtrRetrieve native ('hardware') pointer to a texture.

Static Functions

DestroyRemoves a gameobject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.
SetGlobalAnisotropicFilteringLimitsSets Anisotropic limits.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares if two objects refer to the same.