Hope someone can help I keep getting this error message Setting the parent of a transform which resides in a prefab asset is disabled to prevent data corruption (GameObject:“EnimiesGoBoom sparks(Clone)”)
The object you are instantiating is a child of another object and they’re all in a prefab. You cannot set the transform on it because it will pull it out of the prefab which, as the error states, is not allowed. You could fix it by not having it inside the prefab (from your screenshot it looks like it doesn’t need to be there) and referencing it directly from the project tab.
I am, of course, somewhat guessing here. I cannot see the prefab, but I can see that you have AliceGoBoom inside the player prefab, so I am assuming you have a similar setup for enemies
This is a very, very weird bug. It doesn’t matter if you are trying to change the parent of an instantiated prefab, an instantiated child of a prefab, an instantiated nested prefab, or whatever, it should not throw that error, I tried everything.
The only way to replicate that bug is by trying to change the parent of the prefab itself, not the instantiated prefab: