• 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 /
  • Help Room /
avatar image
0
Question by Zitoox · Sep 05, 2016 at 12:35 AM · videointro

Play a video before the game starts

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 =(

Comment
Add comment · Show 3
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 AlucardJay · Sep 05, 2016 at 12:43 AM 3
Share

Did you try searching ?

Unity $$anonymous$$anual: https://docs.unity3d.com/$$anonymous$$anual/class-$$anonymous$$ovieTexture.html

Unity Scripting Reference: https://docs.unity3d.com/ScriptReference/$$anonymous$$ovieTexture.Play.html

avatar image Zitoox AlucardJay · Sep 05, 2016 at 02:02 AM 0
Share

Wow, dude...

Why be so cold? I was just asking, there's no need to offend me.

avatar image TBruce Zitoox · Sep 05, 2016 at 06:19 PM 2
Share

@alucardj was not being cold (and how do you take this as offensive and if anyone was I would say it was you).

UA is a place for people to get answers to questions AFTER they have tried to figure things out on their own (this includes searching the docs, Google and yes even UA before posting a question).

With Google being the most popular search engine out there, that should be the first place to do a search (Google will not only return links to UA but also to Unity docs as well as how to videos and more - all that is needed is a little effort as @alucardj was pointing out).

Forget about the fact that this question has been asked and answered several times before on this site.

You should read the UA FAQ and User Guide for information about posting questions as well as using UA.

Here are some excerpts from the $$anonymous$$oderator Guidelines.

The guidelines are to help all moderators have a unified way of working together in an effort to improve Unity Answers with the following goals:

$$anonymous$$aking authentic questions more visible so they can be answered $$anonymous$$inimize the amount of commonly asked questions Increase the overall quality of users questions $$anonymous$$ake it easier for users to find the information they need

Reasons for a question to get rejected in the mod queue Duplicate question: the question has been asked several time before and there are existing answers available that can be found through a search. Leave a comment that this question already exists if the user were to search, together with a link to a similar question. (As this IS a duplicate question I should have rejected it when it was in the $$anonymous$$OD queue, but I posted it and move it to the Help Room)

What moderators like @alucardj and myself do affects the users and ins$$anonymous$$d of saying someone is cold for actually being nice ins$$anonymous$$d of rejecting your question I$$anonymous$$HO is offensive.

After reading this you should think about removing your comment and posting an apology or even a thank that he took the time to post (we do not work for Unity or get paid).

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Acid_kenobi · Sep 05, 2016 at 04:15 AM

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..

Comment
Add comment · Show 1 · 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 Zitoox · Sep 05, 2016 at 09:53 PM 0
Share

Hm... Pretty sure it wouldn't work. As far as i know the only way to play videos by using textures is to buy a specialized asset in the asset store, but i just don't trust on them. I wanted to do the system myself. I would appreciate if you knew a tutorial or something, because i have no idea to how to do this using the engine's tools. (Otherwise i wouldn't be asking)

avatar image
0

Answer by sparkinfo · Sep 05, 2016 at 09:26 AM

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.

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 RoofTurkey · Sep 05, 2016 at 04:21 PM

Depends on the platform you are developing your game for. On mobile you can only play videos full screen (AFAIK): https://docs.unity3d.com/ScriptReference/Handheld.PlayFullScreenMovie.html, 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.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

57 People are following this question.

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

Related Questions

How to turn a video into a Material? 1 Answer

WebRTC in Unity using FrozenMountain 4 Answers

Why the learning videos can't be played? 0 Answers

Need help with issues using the VideoPlayer released in Unity 5.6 1 Answer

VideoPlayer on DX9 video card 0 Answers


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