This version of Unity is unsupported.

Rect.MinMaxRect

Declaration

public static Rect MinMaxRect(float xmin, float ymin, float xmax, float ymax);

Parameters

xmin The minimum X coordinate.
ymin The minimum Y coordinate.
xmax The maximum X coordinate.
ymax The maximum Y coordinate.

Returns

Rect A rectangle matching the specified coordinates.

Description

Creates a rectangle from min/max coordinate values.