Movie


Plays a movie.

Sample

Reference

Command Description Arg1 Arg2 Arg3 Arg4 Arg5 Arg6
Movie Plays a movie Movie filename.
Recommended supported extension is .mp4.

How to Prepare Movie Files

  1. Import the movie file under the StreamingAssets folder (please refer to the section below for information on Unity5 folder names).
  2. Add a movie texture to the Movie List in WrapperMoviePlayer under the Managers>Canvas-Movie object.

How to Write a Movie File with Unity5

In Unity4, movies could just be placed under the StreamingAssets folder. However, you need to be aware of the following points when using Unity5:
– The editor is unable to read in movies located under StreamingAssets, so you need to change the folder name by adding a space in between the two words as in “Streaming Assets”.
– On the other hand, when doing a build for iOS or Android, the movie has to be under StreamingAssets, so you will need to change the name of the folder back.
– Once the build is finished and you go back to the Unity editor, you will need to change the name of the folder again and then re-import the movie.

Important Notes on Unity Movies

Unity has the concept of movie textures. Movies are filled into textures, which are then attached to polygons and converted into drawings. PCs basically use this method to draw movies. This functionality provides many flexible uses, allowing you to display movies in parts of the game screen, and more.

However, smartphones running iOS or Android do not support movie textures, so movies can only be watched in full screen (displayed across the whole screen as if to hide the whole game screen).

Utage has been designed to play movies only on full screen in line with the limitations of smartphones.

Reference: Unity’s official document
http://docs.unity3d.com/ja/current/Manual/class-MovieTexture.html