GetAllocTileSize
Returns the tile size based on the given pixel size.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
GetAllocTileSize(Vector2Int)
Returns the tile size based on the given pixel size.
public static Vector2Int GetAllocTileSize(Vector2Int pixelSize)
Parameters
Pixel size.
Returns
Type | Description |
|---|---|
| Vector2Int | Tile 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
Returns
Type | Description |
|---|---|
| Vector2Int | Tile size matching the given pixel size. |