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 awplays49 · Feb 13, 2015 at 12:45 AM · uicanvaslevelunity 4quit

level never loads again after quitting to the menu

So my start game button works fine, but after quitting out of the game back to the menu, it doesnt work??? this even happens when i start at the level! what is going on?

EDIT:

Each time, NO errors or ANYTHING. just doesnt load if i quitted out.

Comment
Add comment · Show 26
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 awplays49 · Feb 13, 2015 at 12:52 AM 0
Share

@DanSuperGP if you could just help me with this, id appreciate it, im ok with not being able to do that other answer.

avatar image DanSuperGP · Feb 13, 2015 at 12:54 AM 0
Share

There's not enough information there for me to help.

avatar image awplays49 · Feb 13, 2015 at 12:56 AM 0
Share

Whatever you need me to tell you ill tell you. @DanSuperGP

avatar image DanSuperGP · Feb 13, 2015 at 12:58 AM 0
Share

I have no idea. You're basically saying... "$$anonymous$$y game doesn't work... tell me what's wrong"

avatar image awplays49 · Feb 13, 2015 at 12:59 AM 0
Share

ok well i load the game and the play button works fine, but then if i quit out and press it again, it freezes forever. even if i start in the game scene, it does the same thing as long as i was once in the game scene. @DanSuperGP

Show more comments

1 Reply

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

Answer by InvincibleCat · Feb 13, 2015 at 01:34 AM

So move your PlayButton anywhere else.

Change the script to this :

 public void LoadLevel()
     {
         StartCoroutine(LoadLevelCoroutine(0.1f));
     }
 
     IEnumerator LoadLevelCoroutine(float waitingTime)
     {
         yield return new WaitForSeconds(waitingTime);
         Application.LoadLevel("Empty Graves");
     }
 }

and call LoadLevel as the first method of your PlayButton (the game object)

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 awplays49 · Feb 13, 2015 at 01:36 AM 0
Share

Thanks, im going to accept this after this comment, but if you don't $$anonymous$$d me asking, what does this do differently? i know its a coroutine ins$$anonymous$$d of an invoke, but how is the outcome different?

avatar image InvincibleCat · Feb 13, 2015 at 01:38 AM 0
Share

Just made it as the coroutine because it is better:

if you decided to change the name of the method, you will have to change the string name.

Invoke is more time consum$$anonymous$$g

The thing that really changed is where to place your script. As you desactivate it, the method is never called...

avatar image awplays49 · Feb 13, 2015 at 01:39 AM 0
Share

Oh i get it!!! WHY didn't i see that as the issue? lmao thanks man. sometimes i need a second pair of eyes, plus I've got serious flu right now, so i don't feel too well. anyways thanks!

avatar image InvincibleCat · Feb 13, 2015 at 01:43 AM 0
Share

I will suggest that you should start with a prototype BEFORE trying to having anything like menus, $$anonymous$$imap or anything like that (event 3d models or polished stuffs). Focus on the gameplay. I started my current game with basic squared. When you will think that your game is good enough. Start polish it and improve it.

avatar image awplays49 · Feb 13, 2015 at 01:45 AM 0
Share

like i said, im not feeling well and its very late here. so im not thinking straight, im sorry.

Show more comments

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

21 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

Related Questions

How to make the UI invisible from behind? 0 Answers

How to stop collider from interfering with world space canvas? 1 Answer

How do I carry over ui text to the next by obtaining the gameobject children 0 Answers

Make a UI button quit the exe, Unity 5 2 Answers

How to change UI image render order dynamically on runtime 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