I am following a tutorial about grid based movement, and I am currently facing an error of my arugment can’t be converted from Vector2 to string when my argument is a Vector2 and my function asks for Vector2.
The reference can be found in https://www.youtube.com/watch?v=4JaHSLA2CKs at 8:01
for (int x = 0; x< gridSize.x; x++){
for(int y = 0; y < gridSize.y; y++){
Vector2 cords = new Vector2Int(x,y);
grid.Add(cords, new Node(cords));
}
}
I expected the function to take the arugment becasue they are both Vector2
New contributor
fishhuer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.