Unity Engine documentationScript ReferenceUnityEngineVector2IntSet(int, int)Set x and y components of an existing Vector2Int.Read time 1 minuteLast updated 4 days agoDefinition Type: Method Namespace: UnityEngine Assembly: UnityEngine.CoreModule public void Set(int x, int y) Parameters xintA value for the x component.yintA value for the y component.