Method GetScaledSize
GetScaledSize(Vector2Int)
Applies to the passed size the scale imposed by the dynamic resolution system. Note: this function has the side effect of caching the last scale size, and the output is always smaller or equal then the input.
Declaration
public Vector2Int GetScaledSize(Vector2Int size)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | size | The starting size of the render target that will be scaled by dynamic resolution. |
Returns
Type | Description |
---|---|
Vector2Int | The parameter size scaled by the dynamic resolution system. |