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 gamegirl1984 · Dec 06, 2014 at 01:06 PM · triggerlevel

Level requested not loading, prev. one is instead?

Ok, so here is my script, its on a trigger. When I hit said Trigger, scene 1 (the one I'm on) then loads up again, instead of scene 2. I have no other scripts with LoadLevel on them in the area.... Any ideas?? And I double checked the "build settings" and made sure.

 #pragma strict
     
     function Start() {
     
     }
     function OnTriggerEnter(){
         
         yield WaitForSeconds(2); Application.LoadLevel(2);
         
     }

Comment
Add comment · Show 2
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 gamegirl1984 · Dec 06, 2014 at 01:15 PM 0
Share

I'm a dork. The problem was strange and I didn't think it would have been a problem. The scene I was 'in' before trying to load 2 wasn't in my build settings because I re-named it,(the old one was though) so for some reason it was loading the current scene by the other name. But it was scene 1 not 2 so that still wouldn't make sense. I would still think it would load whatever level was on the trigger... But I guess its picky. Thanks for the quick response though!!!!

avatar image jtok4j · Dec 06, 2014 at 01:16 PM 0
Share

Hey, just so you know, you can also load scenes by their name, ins$$anonymous$$d of their "scene number". Happy creating! :D

2 Replies

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

Answer by gamegirl1984 · Dec 06, 2014 at 01:17 PM

Close this please. I'm a dork. the issues was: My current scene was not in my build settings (because I re-named it) So for some reason that was effecting the trigger script. And it was re loading the current scene under a different name. Not sure why and how that would happen though.

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
1

Answer by jtok4j · Dec 06, 2014 at 01:12 PM

Hey Gamegirl,

Sure you're not in scene 0 (The real scene 1) and needing to load scene 1? Have you tried messing with the 2 and changing it to something else?

If this doesn't help, can you please put a screenshot of your build settings? (Sorry. :P ) Hope to hear from you soon! :D

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

26 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

Related Questions

Load next level when reach score 1 Answer

destroy object after Application.LoadLevel 1 Answer

Can't click gameobject when over another trigger? 1 Answer

enable a canvas on trigger 2 Answers

Level Segmenting and Loading 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