- Home /
How do I import packages with Prefabs to Update my package automatically?
I have imported my artist's newest package of prefabs and want to integrate it into my project. I am working with grayboxed prefabs that I would like to automatically update after importing the artist's most current package. The naming conventions for all prefabs have stayed the same between versions and importing the new version seems to create a second prefab in my folders, with a number "1" added to the end. What is the best workflow between teams of artists to bypass this problem? Thank you in advance!
Answer by robbagus · Jun 26, 2015 at 08:40 AM
In Unity 5 they have changed it such that they append "1" instead of replacing files with same name. I don't think there's a solution for that (yet).
As for workflow, it's a good practice to talk to your artist beforehand about naming conventions. It'd be a good practice to group every assets in the package inside a folder, one single uniquely named folder. Let's say your artist have; textures and models, instead of importing textures and models folder, put both of these folders into a main folder before exporting.
Now when you're importing a package, you can just delete (make a backup, or keep the old .unitypackage) the old package folder before importing so there won't be naming conflicts.
Thank you for answering, is there anyway to tell Unity to replace the files, rather than add the 1?
We are currently set up on proper na$$anonymous$$g conventions and project management practices for Unity. I've tested the way you've recommended to transfer files, and am still running into issues where there are missing meshes if there has been an added peice to the prefab.
Is the only fix to do all the manual adjustments per prefab, per updated package? That seems like a lot of extra steps for something that should be handled more intuitively for $$anonymous$$m development.
Just wanted to let you know, this way of importing and updating things did NOT work. Looks like the only answer is to wait for the purchasable Team License is available. https://unity3d.com/unity/collaboration/$$anonymous$$m-license
Otherwise, it's best to stick with importing and updating whole projects, let one person handle edits at a time. This includes scenes with prefabs in them!