- Home /
Destroying Assets is not permitted to avoid data loss
I've looked through several other posts with the same title but none of them seem to be the exact same issue / solution to my problem.
I only get the issue when actually doing a build. I get about 156 errors in the console, though the build itself does say it succeeded, and I'm able to play it with no issues. I can't see anything in the actual build that is wrong, and I don't get any errors in the Unity editor.
The errors point to the file "StripProBuilderScripts.cs" which is not anything that I wrote myself. I went through and commented out every instance of "Destroy" that I was using and it didn't fix the problem.
I don't know if this actually is a problem or not since all my functionality does appear to work both in the editor and in my build. I've attached screenshots of the console error and the line of code it is pointing to.
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
How can I stop the variable values reverting to its default values after being built? 1 Answer
Unity crashed; saved project deleted?? 2 Answers
Unable to list target platforms error for Android build on 5.5.2f1 1 Answer