4
\$\begingroup\$

There are many games out there that feature a movie or cut scene to feature either in-game features or to set the mood for the player. Some examples are the intro from Tony Hawk Pro Skater 4, Fifa Street 2, Modern Warfare 3, etc. How do I integrate a movie I made to Unity so it launches right at the start, ends playing and then shows the main menu? Is it available for unity personal edition or is it only for pro users?

\$\endgroup\$
8
\$\begingroup\$

The component you are looking for is the MovieTexture.

  • Create a scene "intro" with a UI->Canvas.
  • Add a UI->Raw Image to the canvas
  • Import your video as a movie texture and attach it as texture to the image
  • Enlarge the image so it fills the whole screen
  • Add a script which plays the movie and then loads your main menu scene when the video is finished (or the player cancels it).
  • Make this scene your start scene
\$\endgroup\$
  • \$\begingroup\$ Note: You may want to add a flag to only show this scene at startup once. It annoys players to have to sit through the same cinematic every time they launch the game. \$\endgroup\$ – uliwitness Dec 21 '15 at 9:19
  • \$\begingroup\$ Actually I would make it skippable rather than avoid it altogether. Presuming the same player is playing or that they don't want to see what I'm sure is a magnum opus more than once takes choice away from the player. You may want to incorporate the older arcade technique of showing the "attract mode" movie after the main menu rather than before to help mitigate the irritation factor. And obviously if they're continuing a saved game (if that's applicable), you wouldn't want to show it again. Common sense stuff, really. \$\endgroup\$ – Rob Craig Dec 23 '15 at 22:30
  • \$\begingroup\$ Both of your comments can be merged together, now that I think of it. The options should feature a "Enable/Disable introduction movie" and the game at the start should have a text in a visible area that reads: "Press enter/any key to continue". I didn't think about this when until you guys said so. Thanks for the comments I will surely apply this to my game. Happy Holidays. \$\endgroup\$ – Danny Dec 24 '15 at 20:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.