Hi all,
All are having need to put cut scenes or video about their game. So, here we lets look about the simple script to play video in unity iPhone games.
Needs :
Unity3d iOS pro.
steps :
1. Create a folder in Project View. and store the name as "StreamingAssests".
2. Place your video inside of the folder.
That's it.
After that you need to play the video before menu gets load. So, need to write this script into void Start() (in .cs) or function Start() (in .js) of the menu script.
Here the Script :
iPhoneUtils.PlayMovie("Video.mp4", Color.clear, iPhoneMovieControlMode.CancelOnTouch, iPhoneMovieScalingMode.AspectFill);
Video.mp4 // Name of your Video.
Note : When you click on video while playing it'll cancel and menu 'll come automatically.
One easier cake enjoy:-)
All are having need to put cut scenes or video about their game. So, here we lets look about the simple script to play video in unity iPhone games.
Needs :
Unity3d iOS pro.
steps :
1. Create a folder in Project View. and store the name as "StreamingAssests".
2. Place your video inside of the folder.
That's it.
After that you need to play the video before menu gets load. So, need to write this script into void Start() (in .cs) or function Start() (in .js) of the menu script.
Here the Script :
iPhoneUtils.PlayMovie("Video.mp4", Color.clear, iPhoneMovieControlMode.CancelOnTouch, iPhoneMovieScalingMode.AspectFill);
Video.mp4 // Name of your Video.
Note : When you click on video while playing it'll cancel and menu 'll come automatically.
One easier cake enjoy:-)