Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 zachypin · Aug 01, 2011 at 10:08 PM · packagereverserevertoverwrite

Please Help! Revert changes!

I just imported a package into my project that overwrote my script that I spent a week coding!! :( Tell me I can get it back?

Edit: I've found the unity3d file that has the code. Is there a way to pull it from that?

Comment
Add comment · Show 3
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 zachypin · Aug 01, 2011 at 10:17 PM 0
Share

When I go to the file properties and go to "Previous Versions" I get an error on reverting. http://tinypic.com/r/f1clyg/7

avatar image DaveA · Aug 01, 2011 at 10:21 PM 0
Share

Is that $$anonymous$$ac? I always hated how $$anonymous$$ac deletes everything in a folder rather than letting things sit there, and just overwrite new stuff.

avatar image zachypin · Aug 01, 2011 at 10:39 PM 0
Share

no I'm using a PC. But I imported a package that had the same script name and it overwrote

2 Replies

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

Answer by zachypin · Aug 01, 2011 at 11:28 PM

I found a backup version of my code. Open the folder where the code is saved. Right click the script and click "Restore Previous Version". I clicked on this and when I double clicked the previous version I got an error. I right clicked it instead and said edit with notepad++ and I got it to open. Hope this works for others.

Note: Will need to download notepad++ if your copying my exact method, I also use Unity's MonoDevelop

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 DaveA · Aug 01, 2011 at 10:15 PM

Hopefully you used MonoDevelop's editor and had 'Always create backup copy' checked in the Preferences for Load/Save, or similar setting on another editor, or had made a backup. Otherwise, good luck.

I don't know of any auto-backup feature in asset import, but that would be nice. Vote for that at feedback.unity3d.com

Actually, you may be able to pull it from a compiled file. I've never done it, but you can google for '.net decompiler' or 'csharp decompiler' or something like that. I've heard that source (minus comments) is stored there. Which seems awfully horrid if you like to keep your IP rights.

Comment
Add comment · Show 7 · 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 zachypin · Aug 01, 2011 at 10:21 PM 0
Share

I was using $$anonymous$$onoDevelop, but that preference isn't default so no :( Why wouldn't it be default, this is frustrating

avatar image DaveA · Aug 01, 2011 at 10:57 PM 0
Share

We've all been there. It isn't a program until it's had to be recoded at least once. Take heart that your rewrite will be better, benefiting from the experience gained the first time.

avatar image DaveA · Aug 01, 2011 at 11:00 PM 0
Share

Answer updated

avatar image zachypin · Aug 01, 2011 at 11:01 PM 0
Share

oh gawd. this is about to be a lotta work.

avatar image zachypin · Aug 01, 2011 at 11:06 PM 0
Share

I was able to find Unity3D Obfuscator which seems like the tool to use. But it won't dl on my PC. Unity just doesn't want me to have that code.

Show more comments

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

HELP!!! Scene File overwritten after import package 1 Answer

Accidentally overwritten scripts with imported package. 2 Answers

assets in package overwriting files they shouldn't 2 Answers

starting values happening only once in Start() 2 Answers

A ball drops down, how to reverse the velocity? 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