기술 자료

Unity Engine

Unity Engine

GetAllocTileSize

Returns the tile size based on the given pixel size.
읽는 시간 1분최근 업데이트: 한 달 전

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.