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 juliocrivera1 · Apr 01, 2012 at 12:05 AM · scenedestroyobjectsscenescreate

objects not reappearing

hi, this might sound silly but im getting this really weird error i have 2 scenes in my game game1,score so when i finish the game it goes to the score scene im using

 `Application.LoadLevel("score");` 

and in score i have a replay button that does exactly the same

Application.LoadLevel("game1");

so sometimes when i go back to game1 (this does not happen always) some of my objects are not getting created, i thought they stayed in memory and so there was an error recreating them so before loading the next scene i deleted the scene like this

         Object.Destroy(this);
     Application.LoadLevel(score);

but its not solving it any idea how to solve this?

its like this i have a scene that has 2 boxes and 2 game objects with colliders (this is just an example) when i go to scene score and then back to game1 the colliders in the gameobjects are lost thats basically whats happening

thank you in advance

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
0

Answer by rutter · Apr 01, 2012 at 12:51 AM

sometimes when i go back to game1 (this does not happen always) some of my objects are not getting created

Are these objects which you created after the level was loaded? If so, it's entirely normal that they're not reappearing.

You should get the same state each time you load a level. Is that not the case for you?

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 juliocrivera1 · Apr 01, 2012 at 03:22 AM 0
Share

sadly they are all made when the level is loaded they are all created manually and not with code :S and yes i get the same state almost always but there are times when the bug happens and i have seen it in some other games got no idea how to fix it

avatar image
0

Answer by juliocrivera1 · Apr 20, 2012 at 08:19 PM

at last i found the error the thing is when you replay the level sometimes some colliders are not working even if they are enabled so to solve it you have to make em triggers and just remove the trigger and get them to be normal colliders again

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Destroy All Objects In The Scene??? 1 Answer

destroy and create objects 1 Answer

Best way to spawn new objects that arent already in the scene? 1 Answer

Cannot close/unload a scene that is open in editor during playmode (using C# code)? 3 Answers

i want to create a multiplayer like fruit ninja, with a server and a client and only ONE scene but i can't make this with synced colours, see the video please 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