Skip to content

UnityEngineRect

API reference for UnityEngineRect.

Properties

PropertyTypeAccess
centerVector2get, set
heightfloatget, set
maxVector2get, set
minVector2get, set
positionVector2get, set
sizeVector2get, set
widthfloatget, set
xfloatget, set
xMaxfloatget, set
xMinfloatget, set
yfloatget, set
yMaxfloatget, set
yMinfloatget, set
zeroUnityEngineRectget

Methods

Contains

Contains(point: Vector2) -> bool
Contains(point: Vector3, allowInverse: bool) -> bool
Contains(point: Vector3) -> bool

Equals

Equals(other: object) -> bool
Equals(other: UnityEngineRect) -> bool

GetHashCode

GetHashCode() -> int

GetType

GetType() -> SystemType

MinMaxRect

static MinMaxRect(xmin: float, ymin: float, xmax: float, ymax: float) -> UnityEngineRect

new

static new(x: float, y: float, width: float, height: float) -> UnityEngineRect
static new(source: UnityEngineRect) -> UnityEngineRect
static new(position: Vector2, size: Vector2) -> UnityEngineRect

NormalizedToPoint

static NormalizedToPoint(rectangle: UnityEngineRect, normalizedRectCoordinates: Vector2) -> Vector2

Overlaps

Overlaps(other: UnityEngineRect, allowInverse: bool) -> bool
Overlaps(other: UnityEngineRect) -> bool

PointToNormalized

static PointToNormalized(rectangle: UnityEngineRect, point: Vector2) -> Vector2

Set

Set(x: float, y: float, width: float, height: float) -> void

ToString

ToString() -> string
ToString(format: string, formatProvider: SystemIFormatProvider) -> string
ToString(format: string) -> string