Whenever I call the PM action " Destroy Object", I get the following exception:
Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
I am adding a quest prefab to a scene, and after the quest finishes, I wan't to remove it, so I was storing the loaded quest in a global prefab from a script. I am dynamically adding the prefab in c# code, so the ONLY way PM can know what prefab I loaded is if I store the loaded quest prefab in a global variable(or is there another way?). I am getting the exception because I am trying to delete the global variable I guess?
All I am trying to do is delete the dynamically loaded prefab after I am done with it. How would I do this? Thanks.