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
0
Question by Peanut97 · Nov 13, 2013 at 12:17 AM · imagessplash-screenfadeoutfadein

Multiple Splash Screens for a game intro?

Hello all,

I need some help with a game intro I am working on. When the game first boots up I need it to display multiple splash screens that fade in and out. I am using Unity Free. I'm not sure how to achieve this effect... I have multiple JPEG graphics that I need to fade out, wait a few seconds, then fade the next one in, and so on for 8 different images. If anybody can help me out, I would appreciate it so much.

Thank you for all your help!

Comment
Add comment
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

2 Replies

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

Answer by Tomer-Barkan · Nov 19, 2013 at 04:36 PM

You can simply load a few scenes one after the other...

using UnityEngine; using System.Collections; using System.Collections.Generic;

 public class ImageDisplay : MonoBehaviour {
     public Texture imageToDisplay;
     public float timeToDisplayImage;
     public int nextLevelToLoad;
     
     private float timeForNextLevel;
     
     public void Start() {
         timeForNextLevel = Time.time + timeToDisplayImage;
     }
     
     public void OnGUI() {
         GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), imageToDisplay);
         if (Time.time >= timeForNextLevel) {
             Application.LoadLevel(nextLevelToLoad);
         }
     }
 }

Now, create a scene for each image you want to display, and add them to the build order (see how: http://docs.unity3d.com/Documentation/Manual/PublishingBuilds.html).

In each scene that you want to display an image, add the script above to the camera. Then in the inspector, assign the following variables to the script:

Assign the image you want to display to imageToDisplay

In timeToDisplayImage enter the time you want the image to be shown in seconds

In nextLevelToLoad enter the number of the next level you want to load, according to the order you put them in the build settings.

Good luck.

Comment
Add comment · Show 4 · 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 Peanut97 · Nov 19, 2013 at 05:51 PM 0
Share

Thank you!!!

avatar image durvalp1 · Nov 24, 2013 at 08:19 PM 0
Share

Thank you for the answer! It also helped me too!

avatar image ABEMOS · Aug 16, 2014 at 09:56 PM 0
Share

this worked great! but is there a way to make it fade slowly into next level? thank you

avatar image Hungry_Developer · Oct 21, 2014 at 08:53 AM 1
Share

Thanks a lot man !!! Thanks for sharing this with us!!! appreciate your support !!! so helpful !!! I would vote you if I had points (I'm a newbie)

avatar image
0

Answer by matheusrma · Sep 10, 2014 at 11:29 AM

If you are still having a hard time working a good looking splash screen, check it out my Asset Store package.

https://www.assetstore.unity3d.com/en/#!/content/9918

You can get a professional splash screen in less than 3 minutes using the build in examples

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

19 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

Related Questions

Fading from my splash screen 1 Answer

alpha value not changing(gradual decrease) during runtime 1 Answer

Fade In And Out (GUIText) 0 Answers

fade in fade out audio manager 0 Answers

How can I make a fade out transition when i change a culling mask? 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