So… is it possible to play a video before the game starts? Something like an introduction. I am talking about something like: The player click on START NEW GAME. Then a video play and after it, the game starts. Is it possible? If so, how do i do that? I have a video introduction but i don’t know how to use it in the game =(
Depending how you are handling “Start New Game”, you could insert a scene in between the main menu where the player hits “Start new game” and the first level(?).
In this scene I believe you can run your video as a raw image movie texture, and with very little work you could add in if the player hits a key it skips the video and loads the next scene, or once the video is done it automatically loads the new scene.
Hope this helps…
as the above guy said, you need to use separate scenes for this kind of stuff. put your video on the first scene and set a trigger to switch to another scene which will be your main game. you have to use Unity’s Scene Management class for that purpose.
Depends on the platform you are developing your game for. On mobile you can only play videos full screen (AFAIK): Unity - Scripting API: Handheld.PlayFullScreenMovie, while on standalone platforms you can use videos in the game world. On standalone platforms I would probably suggest using the method described above while playing the movie on a simple quad. On mobile platforms it’s probably best to load your game scene and immediately start playing the full screen video, when the user exits the video or the video is finished the player will be able to directly start playing. If you’re using separate scenes for the video and the gameplay the player might have to wait some time after the video before gameplay can begin, which can break the players engagement with the game and might lose you a player more often than necessary.