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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Alp-Giray-Savrum · Sep 08, 2013 at 12:09 PM · sceneloadlevelresetrestart

Reset The Scene ?

Hello, I've been using Application.LoadLevel(0) for resetting to my scene but all stuffs that I've done is still there :S So how can i Completely Reset my Scene ? Is there a code piece for it :D ?

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

Answer by DeveshPandey · Sep 10, 2013 at 07:50 AM

You should check you build settings- Press CMD+SHIFT+B FOR MAC or CTRL+SHIFT+B for window, and see there is any scens added or not in Scenes in build, if not then drag and drop your scene there.

then use Application.LoadLevel(0); // 0 is the index in build setting

it will work.

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 Benproductions1 · Sep 10, 2013 at 07:58 AM 0
Share

so exactly what I said: "If you have your Scene in the build settings as Scene 0, then it will work."

avatar image
0

Answer by Benproductions1 · Sep 09, 2013 at 12:06 AM

Loading a new level removes all objects from the current scene. If you have your Scene in the build settings as Scene 0, then it will work.

I assume you have either not assigned the scene to the build settings and are getting an error message, OR you have ridiculously marked everything with DontDestroyOnLoad.

Hope this helps,
Benproductions1

Comment
Add comment · Show 3 · 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 Alp-Giray-Savrum · Sep 09, 2013 at 01:18 PM 0
Share

No it didn't worked :( I don't know what to do. When i try to reset timer, Timer stucks on 0:00 and level cannot be reloaded :S What can i do !

avatar image Benproductions1 · Sep 10, 2013 at 07:28 AM 0
Share

Are you possibly storing things in static variables. Those won't get reset ever (until restart). It's hard to give any more detailed answers without seeing some code

avatar image Alp-Giray-Savrum · Sep 10, 2013 at 03:51 PM 0
Share

http://answers.unity3d.com/questions/533478/static-variable-doesnt-change-.html Here is my all codes. please help :(

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

17 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

Related Questions

Multiple Cars not working 1 Answer

Can't get simple script to work? 4 Answers

How can I restart a single-scene game? 1 Answer

restart when dead 2 Answers

Resetting a Scene 2 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