Vector 2 Int

Two whole numbers, for sizes and positions in pixels or cells.

A Vector 2 Int holds two whole numbers, usually a size or a position that is counted rather than measured, such as the width and height of a texture in pixels or the number of cells in a grid. Each of the two is a field of its own that works like an Int: type a value, or drag in the field with the middle mouse button.

Each component can be connected on its own. A number with decimals is rounded to the nearest whole number. A single number connected to the whole vector fills both components, and a larger vector fills X and Y and drops the rest.

Keywords: xy, resolution, size, pixels, grid, vector