Im trying to create an prefab at the x and y of my Spawner and the z of -0.1272979 however when I this code is executed, it gives the an error saying The prefab you want to instantiate is null.
when I created the prefab, I selected new prefab, and dragged the object I wanted into the prefab and renamed it EggPrefab. why does this not work?
var cube = Instantiate(Resources.Load("EggPrefab"), Vector3 (transform.position.x, transform.position.y, -0.1272979), Quaternion.identity);