Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
6
Question by christo17452 · Mar 18, 2015 at 02:37 AM · unity 5importingreplaceoverwrite

In Unity 5, how do I replace files instead of appending "1" and duplicating?

In unity 4, when importing a package it would overwrite any existing files with the same name. In Unity 5, it creates a new file like "filename 1". How do I make it overwrite existing files instead of keeping both?

Comment
Add comment · Show 10
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 MaxGabriel2 · Apr 09, 2015 at 01:14 AM 0
Share

I'm running into the same issue. Having the filenames have " 1" after them makes it much more difficult to update a .unitypackage that I'm already using.

avatar image DoTA_KAMIKADzE · Apr 09, 2015 at 01:42 AM 0
Share

I tried importing "unitypackage" in 3 different ways:

-Directly click on it while project is opened

-Through assets store

-Project view => R$$anonymous$$B => Import package => Custom package

I couldn't replicate the issue with any of those methods above^. None of the preference assets checkboxes could cause this issue either.

Have you done anything else to your Unity editor after installation? Some plugins, extensions?

avatar image MaxGabriel2 · Apr 09, 2015 at 01:49 AM 0
Share

No, this was a fresh install of Unity. I tried by double clicking on the package while my project was open, and also doing Assets > Import Package > Custom Package. You were using Unity 5 @DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE ? I'm not using prime 31, but I see them making note of this same issue in their release notes (search for "space 1" in there).

avatar image MaxGabriel2 · Apr 09, 2015 at 01:55 AM 0
Share

One thing to note was that the packages had to be different in some way to cause the duplicate files. If I import the exact same .unitypackage twice, then there are no files to import. But if I have version 1 of a .unitypackage and version 2 of a .unitypackage, then the 1 behavior happens. It happens for all files in the package, regardless of whether or not a particular file changed between version 1 and 2 of the plugin

avatar image DoTA_KAMIKADzE · Apr 09, 2015 at 02:12 AM 0
Share

Tried with different package versions, different locations and even renamed package to something else. Still can't replicate your issue. And yes I'm using Unity 5 (5.0.1f1) everything was also fine on 5.0.0f4 version as well.

Show more comments

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by christo17452 · Apr 20, 2015 at 02:51 PM

@maxgabriel yes I'm still having the issue. Not every time though. Importing unity packages seems to work more often than updating prime31 plugins

Comment
Add comment · Show 1 · 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 $$anonymous$$ · Apr 20, 2015 at 03:11 PM 0
Share

@christo17452, I think it's only updating that has problems. I added new/fresh packages in Unity5 recently and didn't have a problem. Only when it's a package update with existing files.

avatar image
0

Answer by ferretnt · May 14, 2015 at 06:54 PM

I'm also seeing the same thing. It is beyond infuriating. Still, 5.0 did get us a projectsettings.asset that finally serializes as text, so it's not all bad...

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 Denvery · Jun 08, 2015 at 11:43 AM

May be this discussion will be helpful: http://forum.unity3d.com/threads/unity5-and-custom-packages-imports.311807/

To implement replacing meta-files need to stay identical:

  • for file that will be replaced

  • replacing file

Comment
Add comment · Show 4 · 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 Sekai92 · Jun 26, 2015 at 01:37 PM 0
Share

Thats not working for me

avatar image Denvery · Jun 26, 2015 at 01:51 PM 0
Share

Please post what are you doing? $$anonymous$$ay be I can help you, because I've solved this problem

avatar image Sekai92 · Jun 26, 2015 at 04:44 PM 0
Share

i post it here: http://forum.unity3d.com/threads/why-i-get-duplicate-asset-when-i-import-updates-packages.336422/#post-2177406

avatar image Denvery · Jun 27, 2015 at 07:07 AM 0
Share

I've replaced you on the forum: You need delete old ones, but only IN FILESYSTE$$anonymous$$, not in Unity editor. In this case (filesystem) meta-files remains corrected, but content files replaced as we need.

avatar image
0

Answer by xu li · Aug 29, 2015 at 12:08 AM

I fixed my problem by writing a python script to do the job (tranverse and overwrite old file with new file that ends with " 1" or appended number) after importing plugins:

https://github.com/lorry-lee/UnityPluginImportResolver

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

27 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Importing text from blender (with font) to unity3d 0 Answers

Should I use Resource.Load to switch between themes? 1 Answer

Replace public GameObject in SCRIPT1 with dragged public GameObject from SCRIPT2? 3 Answers

Import Project from Asset store 6 Answers

import C4D model with subdivision surface into unity 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