Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically removing old files? #56

Open
rpavlik opened this issue Jul 2, 2015 · 2 comments
Open

Automatically removing old files? #56

rpavlik opened this issue Jul 2, 2015 · 2 comments

Comments

@rpavlik
Copy link
Member

rpavlik commented Jul 2, 2015

Can we make an Editor script that removes outdated files (like ClientKit.dll) for easier upgrading?

@DuFF14
Copy link
Member

DuFF14 commented Jul 2, 2015

Looks like this could do the trick. http://docs.unity3d.com/ScriptReference/FileUtil.DeleteFileOrDirectory.html
This would create a menu item at the top of the editor (called "Example" in this example).
You're talking about files that should no longer be in the project, correct? So that would be ClientKit.dll because its been renamed, osvrTransform.dll, and the Displays folder?

@rpavlik
Copy link
Member Author

rpavlik commented Jul 2, 2015

I'd prefer to not have a top-level menu added (pretty sure I saw somewhere it's not best practices), but a submenu somewhere would work. We'd also want to explicitly list the files to remove (not just the whole displays folder - what if that's where the user was storing theirs) and list to the user for confirmation the ones we found. But if that's the right way to remove files (along with the corresponding .meta file), then that's good - otherwise there's always .NET framework standard libraries for that part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants