![]() ![]() Instead of replacing the existing script and DLL it creates new incrementally numbered files which immediately causes a conflict as follows: When it is called by my script to import and thereby update itself with a newer version, it now sort of works with the following message and results: ![]() With beta 18, it still works with one exception that I can tell so far. In all versions prior including up to beta 13, the import worked as expected. I can confirm that this is an issue with at least Beta 18 as I didn't notice it in Beta 13.ĪssetDatabase.ImportPackage(pFilePath, pInteractive) The ticket number is 652856_2trm2veihjr1r54m I hope this is a bug or I am missing something, as this is going to be an issue for a lot of Asset Store publishers that use DLL's.Įdit2: I've submitted a bug report on this issue. This message is printed in the console after these steps:Ĭreated unique file for imported asset as file exists with different GUID (Assets/Events.dll => Assets/Events 1.dll) I came to this conclusion after performing the following actions:ġ) Create a new project (Project 1) and drag a DLL into the assets folder.Ģ) Update the DLL (added new method to one of the classes) and rebuild.ģ) Create another new project (Project2) and import the updated DLL into it.Ĥ) Export the DLL from Project 2 as a Unity Package.ĥ) Import the package from step 4 into Project 1. If a dll is imported with the same folder structure as an existing dll, and the dll to be imported has no plugin platform data, I think it's a pretty fair assumption that the user is intending to overwrite the existing dll with the new dll.Įdit: The issue appears to be that the GUID is different for the DLL's, so it is creating a copy. The issue is that the pre-existing DLL will have to be removed before importing the new DLL, and if the DLL contains custom editors, the inspectors for existing components will stop working. A somewhat related issue when you try to import an updated package into a project, and that package contains a DLL, the DLL from the package is added as a duplicate rather than replacing the existing DLL.This really needs to be fixed, as it will cause major issues for Asset Store publishers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |