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 Mathias_Bras · Jan 26, 2013 at 08:30 PM · crashcrashing

Unity Crashing and Odd Script Behavior Permanently Afterwards

Hello,

I am very new to unity and I have run into an odd problem.

I was running the preview in unity and I had a script do something bad that froze it. So I used task manager to kill it.

Next time I started unity and ran my script (after I fixed the problem), the behavior was different than it should have been.

I had a Perlin noise generator class that basically stopped working. This class was in its own game object. It was however being called by reference through another game object (I had drug it onto the inspector to "link" it).

The only way to get my class to start working again was to delete the game object containing that class and recreate and link it to the referencing script.

This seems like it could be a very big problem in the future as my project grows. If I happen to get a crash and all of the sudden my classes stop working (but no errors in Unity), then I am going to have a heck of time trying to hook up all my references again to fix the problem.

Thoughts? Ideas? Comments?

Thanks!

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 Doireth · Jan 26, 2013 at 10:09 PM

Perhaps your project simply wasn't saved when you made the changes and the crash resulted in a forced close of Unity which meant all your changes were lost. I've had several crashes and only ever lost what I hadn't explicitly saved myself.

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
0

Answer by Mathias_Bras · Jan 27, 2013 at 03:09 PM

Hmm, I typed up a reply but it doesn't seem to have made it though...

Anyway, I am positive it was saved. When the the project loaded back up everything was where it should be and the code was correct. It just didn't work.

I spent some time debugging trying to figure out where the breakdown was. I never did find the particular line before I decided to delete the object and just recreate it. I didn't actually think it would fix the problem, but I figured it couldn't hurt.

After that it just worked. No code change or anything.

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

10 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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Unity crashes upon startup of any project 3 Answers

Windows Standalone crashing silently during scene switching 2 Answers

Delay between throwing/firing object 1 Answer

Disable Mouse Look(script) completely 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