Skip to content
New issue

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

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

Already on GitHub? # to your account

Please make sync moving files in the rider with the unity metafiles #61

Closed
van800 opened this issue Nov 2, 2016 · 4 comments
Closed

Comments

@van800
Copy link
Member

van800 commented Nov 2, 2016

This feature is present in the MonoDevelop as separated plugin and in the VS by default.

Scripts linking drops from prefabs after moving files inside rider.

issue moved from https://github.com/JetBrains/Unity3dRider/issues/17

@citizenmatt
Copy link
Member

Hi @dukobpa3. Could you provide some more details, please? Is this the same as #56, renaming/moving linked .meta files?

@dukobpa3
Copy link

dukobpa3 commented Nov 3, 2016

I think yes. It is duplicated tasks.
The magic is in the guid inside metafile. Linking to gameObject provided by this guid.

You should:

  1. Rename both metafile and class to the same name (and move it to the same path if needed)
  2. Keep guid and don't change it after moving|renaming classes|interfaces|other_files
  3. Maybe something else like fix new path inside metafile, etc. But if you will keep name and guid - then Unity will fix it itself after reimporting this files.

We are using text serialization of metafiles in our projects and it seems like not big deal. But I don't know how it works with binary serialization(which enabled by default).

@sindrijo
Copy link

sindrijo commented Nov 9, 2016

Metafiles are always text based (yaml), even when Asset Serialization is set to Force Binary

@citizenmatt
Copy link
Member

See details on #56

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

No branches or pull requests

4 participants