I’m trying to instantiate a line into my game at the position of the spawner but when I put the coords into the code I get an error in the vector3 part of the code. I’m making a 2d game.
public void spawnLine()
{
Instantiate(line, new Vector3(transform.position.x, transform.position.y, 0));
}
The error I get is "CS1503. Argument 2: cannot convert from ‘UnityEngine.vector3’ to ‘UnityEngine.Transform’ "