Reputation: 1
I am working with Vuforia in Unity 2019.2.5f1 and building the project for Android. I have some Vuforia related files in the Packages section which I have edited to make some part of the project work. Everything works fine and the changes made in that file are visible when I run the project in my device directly by using the Build and Run option.
However, I also want to do some additional stuff in the project using Android Studio. For that, I export the project by checking the Export Project option in Build settings. The exporting is done fine, but the Package file in which I made some changes, is reset to its original data. The exported project (which is an Android Studio project) does not reflect the changes as well. Other files present in Assets section work fine and changes are visible, but not the files present in the Packages section.
Basically, I have a file in the Packages section which I need to change, but the changes are not reflected in the exported project. But, are visible when I run the project directly from Unity in my device. I want those files not to reset. I need some guidance on how to achieve this.
I am not very experienced in Unity. Any help in this regard is appreciated.
Thanks
Upvotes: 0
Views: 1366
Reputation: 90813
In short: Do not edit anything in the Packages .. they get recompiled/imported automatically and in simple words: You can't prevent it.
What you can do however is copy the entire according folder from the Library
over into the Assets and thereby make them local files you can then edit. See Embedded Dependencies
As mentioned in this thread by Unity Technologies (22.05.2019)
Yes, currently the way to develop a package is to copy/move it to your project's Packages folder.
Also see Copying a Unity package from the cache for further information.
In general no changes should be necessary to a Package directly. Maybe you should rather implement your own script and only copy the original content and then rather make your changes their?
Upvotes: 1