Cannot add or drag an asset to the inspector

Having a strange issue where the inspector won’t allow me to attach my enemy prefab. I can only attach it assuming it’s already in the hierarchy which obviously isn’t the correct solution given that we want it as a prefab.

As you can see in the screenshot Enemy is a Game Object already placed in the hierarchy but attempting to drag in a prefabbed object (enemyBlack2) isn’t allowed.

I should also add that I attempted to run Unity in both standard and administrator modes.

It’s possible that your EnemySpawner script is looking for a specific type of object. One that your instanced enemy qualifies as, but not the prefab. Mind attaching a snippet of the code declaring the EnemyPrefab member?

If I had to take a guess I’d say that you’re looking for a specific type other than GameObject. And this specific type is something you’re attaching to your Enemy instance in your scene Hierarchy, but it’s not attached to the prefab. You could try creating the prefab from the Enemy instance in your scene by dragging it over to your asset view.

Im having the same problem how did you solve it InJust???