"Destroying assets is not permitted to avoid data loss". How to overide game pause?
A "Destroying assets is not permitted to avoid data loss" problem is a common coding problem and there is much said about it. My problem is this: I use the "easyAR" augmented reality package for a project. This package has scripts that are simple references to other scripts that I cannot have access. ex.:
namespace EasyAR
{
public class RealityPlaneBehaviour : RealityPlaneBaseBehaviour
{
}
}
plus there are also the "copyrights".
The easyAR uses its own scripts, materials and custom shaders. As I was trying to achieve something, I changed one material in a easyAR 's - script (through inspector menu) and replace it with one of my own material with another shader and for a texture I use a "render texture" that gets image from another camera. The funny thing is that until last week everything was working fine, but one day, I hit the "play" button, for my project test, and, all of a sudden, the game started on "paused" mode and I got the "Destroying assets is not permitted to avoid data loss" message, on the console, which after clicking it, it pointed the "render texture" inspector properties.
If I go on and hit the "unpause" my game continuous as nothing have happened.
So, here are my questions:
Why did this message came out of nothing (I did not change anything since last normal test of my game) ?
Can I "override" it with a script ? Since after unpausing my game works fine..
If I just compile it, will the Unity "overcome" this problem or I get a non-working game? because it is an error - not a warning, but afterwards the game keeps playing with no problem at all...