[SOLVED] I'm having an issue with Prefabs and the Inspector. Please Help.

I wan’t to place the “water” prefab, which is a GameObject with 4 nested GameObjects, inside the “Water Drop” slot in the script component. I had them working before but after restarting Unity (not updating, just closing then opening again) they all disappeared from their appropriate spots and now I can’t fill any of the slots. I have tried making everything from scratch, including making a whole new game object, deleting the script file, making a new one and attaching it to the new game object, but for the life of me I can’t figure out how to fill the slots. They just remain empty.

The code for each of those slots on the script component is:

// replace [NAME] with Water Drop, Electric Drop, etc. 
public GameObject [NAME];

Any help would be greatly appreciated. I really don’t want to have to start this project over again.

alt text

I’ve also posted my question on the forum here:


So this is a group project and one of the team members decided it would be fun to make a GameObject.cs file, so Unity was getting confused as to which GameObject (the UnityEngine.GameObject, or the GameObject.cs) it was supposed to derive the object I was making. Removing this file solved the problem entirely.
Whoopsie Whoopsie.