Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by stefan · Jun 07, 2010 at 08:54 PM · movie

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

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Peter G · Jun 07, 2010 at 08:56 PM 0
Share

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

avatar image qJake · Jun 07, 2010 at 10:02 PM 0
Share

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

avatar image Eric5h5 · Jun 08, 2010 at 02:43 AM 0
Share

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

avatar image qJake · Jun 08, 2010 at 08:13 AM 0
Share

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

avatar image stefan · Jun 08, 2010 at 09:09 AM 0
Share

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

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
20
Best Answer

Answer by qJake · Jun 07, 2010 at 10:01 PM

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.
Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image stefan · Jun 08, 2010 at 09:11 AM 0
Share

i cant understant this sorry

avatar image qJake · Jun 08, 2010 at 09:23 AM 1
Share

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

avatar image stefan · Jun 08, 2010 at 01:02 PM 0
Share

I understand that and thans so much !

avatar image PaulUsul · Jun 08, 2010 at 01:49 PM 0
Share

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

avatar image avidgamer · Aug 19, 2012 at 04:36 AM 0
Share

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

Show more comments
avatar image
0

Answer by logan 1 · Apr 27, 2011 at 03:04 AM

doesnt make sense. doesnt work!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Seyed_Morteza_Kamaly · Nov 19, 2015 at 07:06 PM

using UnityEngine; using System.Collections;

public class NewBehaviourScript : MonoBehaviour { public MovieTexture myMovie;

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

}

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

www.movie in unity free 1 Answer

GUI movie texture - sound delay 1 Answer

Unity Movie Texture Audio Black Screen 1 Answer

Best method to stream large still image stream as movie-like texture 1 Answer

Want to make film... how to do this? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges