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 Calum1015 · Apr 11, 2015 at 05:28 PM · error

Unity clearing my scene when I press play in the editor

Hello Unity community, I am having a problem within the unity editor. Today I was writing a few scripts to spawn in a player using Photon Unity Networking. I do not believe this issue arose from the scripts though. The problem is that when I run my scene in unity, all of the sudden my scene clears itself, removing all gameobjects, child objects, just everything. I have no destroy functions in my scripts. This has been happening for a while and I cannot find a way to prevent it. It justs destroys my scene and I have to rebuild everything, for some reason it saves the scene after wiping so I can't get my saves back. If someone could help that would be great, also I have tried reinstalling unity, restarting my comp, even tried a debugging scene with just a terrain and a camera (not a player) and it still happens. I can't test my scripts anymore in any way. Please help!

Engine version is Unity 5.0.0

Comment
Add comment · Show 7
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 meat5000 ♦ · Apr 11, 2015 at 05:43 PM 0
Share

Is it the same in a fresh project?

Save your scene and project.

Then, save your scene under a new name to make a copy, preserving the original/

avatar image Calum1015 · Apr 11, 2015 at 05:46 PM 0
Share

Yes it is the same, I tested it an it happens in every project, except one which confuses me, I have a 2d game that runs properly all of its scenes except when I create new scenes in that project and press play, it gets wiped too.

avatar image meat5000 ♦ · Apr 11, 2015 at 05:47 PM 0
Share

Reinstall Unity but this time do it in Ad$$anonymous$$ $$anonymous$$ode.

Also make sure to start Unity in Ad$$anonymous$$ mode also.

avatar image Calum1015 · Apr 11, 2015 at 05:49 PM 0
Share

Okay I will try that, will reply when finished with results.

avatar image Pharaoh_ · Apr 11, 2015 at 06:04 PM 0
Share

Check your cameras. If you have more than one and the depth of the secondary camera is higher than the main's, then it is rendered and this is where you're looking through.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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 do I change script API reference language in Monodevelop? 1 Answer

Array index is out of range (C#) ? 3 Answers

Send Log file with email? ( IOException: Sharing violation on path) HELP 0 Answers

Setting the transform of an instantiated game object 1 Answer

What are these errors I get when I'm trying to build? 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