Hello all! I am making an endless runner and when I am trying to instantiate this prefab, I am getting an conversion error. Does anyone know what I would have to type to fix this? A quick explanation would help too if possible. Thanks!
Error: cannot convert from ‘UnityEngine.Vector3’ to ‘UnityEngine.Transform’
public GameObject Smallb;
public GameObject Mediumb;
public GameObject Largeb;
public GameObject copy;
This.
If you only pass 2 arguments, the second needs to be a transform. If you are passing a vector3 for position, you need to pass the rotation as well.