Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MinMaxRect(float, float, float, float)

Creates a rectangle from min/max coordinate values.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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

Type

Description

RectA rectangle matching the specified coordinates.