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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

20 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

Related Questions

Fading from my splash screen 1 Answer

AudioClip.Create fade in and out 1 Answer

Fade In / Out not working C# 1 Answer

Sprite smooth fade out/in 2 Answers

Splash Screens (multiple images) Game Intro 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges