Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by craz3sl3nd3rfan · Oct 15, 2015 at 08:53 PM · unity 5scripting problemnewbieloading screenstress

Unity 5 Loading Screen Script?

Hey, I am trying to make a loading screen just like this: alt text

Problem is, I don't know how to do that, and I am not that good at programming…

If you have anything, pls make me the script, and give me descriptive details.

mqdefault.jpg (11.2 kB)
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

3 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by PictonicStudio · Oct 17, 2015 at 07:13 AM

 public Texture2D ProgressBar;
 
     private AsyncOperation async = null;
 //Always start this coroutine in the start function
     private void Start()
     {
         StartCoroutine(LoadLevel("LevelName"));
     }
 //CoRoutine to return async progress, and trigger level load.
     private IEnumerator LoadLevel(string Level)
     {
         Application.LoadLevelAsync(Level);
         yield return async;
     }
     private void OnGUI()
     {
         // Check if it's loading;
         if (async != null)
         {
             GUI.DrawTexture(new Rect(0, 0, 100 * async.progress, 50), ProgressBar);
         }
     }



And Just for future tips, please don't sound so demanding. We do this for free, and are just inhibiting you from learning how to do it your self.

Comment
Add comment · Show 5 · 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 craz3sl3nd3rfan · Oct 20, 2015 at 02:26 PM 0
Share

is the async a pro thing for unity 5?

avatar image PictonicStudio craz3sl3nd3rfan · Oct 22, 2015 at 06:51 AM 0
Share

No, not for Unity 5

avatar image alsharefeeee · May 03, 2016 at 01:47 PM 0
Share

WTH! not even a "thank you" and then you even ask another question o_0

avatar image suuunly · Sep 07, 2016 at 04:05 PM 0
Share

I for one would like to thank you for your code example as well taking OPs rude question/response like a professional. tips virtual hat to you

avatar image BadSeedProductions · Sep 25, 2016 at 04:36 PM 0
Share

This doesn't work as of 2016, too much obsolete code

avatar image
0

Answer by jamesccc · Oct 20, 2015 at 04:38 PM

     IEnumerator LoadingLevel (int i) {
         Async = Application.LoadLevelAsync (i);
         yield return Async;
     }
 
 
     void OnGUI () {
         if (Async != null) {
             GUI.DrawTexture (new Rect (0, 0, 100, 50), ProgressBarEmpty);
             GUI.DrawTexture (new Rect (0, 0, 100* Async.progress, 50), ProgressBarFull);
         }
     }

I dun thk its a pro as it works fine on 5.2 here.

Hope it helps. cheers

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 PictonicStudio · Oct 20, 2015 at 05:46 PM 0
Share

That's literally the answer i posted...

avatar image
0

Answer by Niloy · Dec 08, 2016 at 04:28 AM

That was a great help :) Thanks a lot Bro.

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

43 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

Related Questions

how do I rezolve "look rotation viewing vector is zero"? 1 Answer

make a gameobject move to another gameobject that was selected by mouse click? 1 Answer

Can not get my raycast to detect an object 0 Answers

How to run a function after every X minutes in Unity Script? 1 Answer

This is my coding for login with php my admin but it kept telling me that i have parsing error. HELPPPPPPPPPPP 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