Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAllocTileSize

Returns the tile size based on the given pixel size.
Read time 1 minuteLast updated 10 days ago

Definition

GetAllocTileSize(Vector2Int)

Returns the tile size based on the given pixel size.
public static Vector2Int GetAllocTileSize(Vector2Int pixelSize)

Parameters

pixelSize

Pixel size.

Returns

Type

Description

Vector2IntTile size matching the given pixel size.

GetAllocTileSize(int, int)

Returns the tile size based on the given pixel size.
public static Vector2Int GetAllocTileSize(int pixelWidth, int pixelHeight)

Parameters

pixelWidth

Width in pixels.

pixelHeight

Height in pixels.

Returns

Type

Description

Vector2IntTile size matching the given pixel size.