I can't drag prefab gameobject into other prefab gameobject

Hi guys,

I’m trying to make a path for enemy in my game. To do this I created a List variable named waypoints. Then I tried to drag waypoints into this. But I can’t drag them into it.

public class EnemyPath : MonoBehaviour
    [SerializeField] List<Transform> waypoints;


Thanks advance for your interest

I think you are trying to add values directly into the PREFAB. Instead of that, click on the enemy gameobject in hierarchy window and add some values here.

No, not list (gameobject). Just gameobject. Creating gameobject and set reference in hierarchy works.