i’m trying to increment the x coordinate of a vector2 by a certain amount (defined in the inspector), but it says that it cannot implicitly convert from type float to int. i don’t understand why i’m getting this problem because the value i’m incrementing it by is a float. the code i’m using to increment it is below.
position.y += spacing;
this is the code i’m using to define the variables
public float spacing;
public Vector2 position;
please help, i have no idea what’s going wrong.