x


How to load a movie at the beginning of my game

I'M A BEGINNER and I just want do know how to play a movie at the beginning of my game plz answer

more ▼

asked Jun 07 '10 at 08:54 PM

stefan gravatar image

stefan
28 6 7 10

Do you have to have Unity Pro? You can't without it. You will have to make your own in game cutscenes.

Jun 07 '10 at 08:56 PM Peter G

@Peter G: You can play Movie Textures without Unity Pro... I'm not sure what you're referring to...

Jun 07 '10 at 10:02 PM qJake

@SpikeX: This page: http://unity3d.com/unity/licenses.html says video is Pro-only.

Jun 08 '10 at 02:43 AM Eric5h5

@Eric: That's all fine and dandy, but THIS page says nothing about Movie Textures being Pro-only: http://unity3d.com/support/documentation/Manual/Video%20Files.html -- So, which one is wrong?

Jun 08 '10 at 08:13 AM qJake

Yes i have unity 3d Pro but i just cant understand this page :( http://unity3d.com/support/documentation/Manual/Video%20Files.html

Jun 08 '10 at 09:09 AM stefan
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

You can use a Movie Texture.

Edit: Alright, this is as detailed as I'm going to get. If you still don't understand me, I don't know what else to tell you, other than to learn some Unity basics before attempting this.

  • Import your movie file into the Assets section of Unity.
  • Create an empty Game Object.
  • Place something like this script inside of it:
MovieTexture myMovie;

void Start()
{
     myMovie.Play();
}

void OnGUI()
{
     GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), myMovie);
}

I think that code will work, though I don't have Unity Pro so there's no way for me to test it out. Someone correct me if I'm wrong.

Anyway.

  • Attach that script (add your own class header to it) to your empty Game Object.
  • Drag your movie file from the Assets pane onto the Inspector for the script (on the empty game object), which should have a slot for "My Movie".
  • Play the scene. Your movie should play, full-screen.
more ▼

answered Jun 07 '10 at 10:01 PM

qJake gravatar image

qJake
11.6k 43 78 161

i cant understant this sorry

Jun 08 '10 at 09:11 AM stefan

Edited, added detailed instructions. If you still don't understand how to do it, learn some Unity basics: http://answers.unity3d.com/questions/4897/how-can-i-start-learning-unity-fast

Jun 08 '10 at 09:23 AM qJake

I understand that and thans so much !

Jun 08 '10 at 01:02 PM stefan

This answer should be rated up for pure tolerance and simplicity ;P

Jun 08 '10 at 01:49 PM Usul

As stated at the top, you have to have Unity Pro for this, otherwise it wont work.

Aug 19 '12 at 04:36 AM avidgamer
(comments are locked)
10|3000 characters needed characters left

doesnt make sense. doesnt work!

more ▼

answered Apr 27 '11 at 03:04 AM

logan 1 gravatar image

logan 1
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x117

asked: Jun 07 '10 at 08:54 PM

Seen: 2544 times

Last Updated: Sep 15 '12 at 08:52 AM