Method Size
Size(Texture)
Retrieves texture width and height as a Vector2Int.
Declaration
public static Vector2Int Size(this Texture texture)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The texture to retrieve dimensions from. |
Returns
Type | Description |
---|---|
Vector2Int | The texture dimensions, in pixels. |