UnityEngineRect
API reference for UnityEngineRect.
Properties
| Property | Type | Access |
|---|---|---|
| center | Vector2 | get, set |
| height | float | get, set |
| max | Vector2 | get, set |
| min | Vector2 | get, set |
| position | Vector2 | get, set |
| size | Vector2 | get, set |
| width | float | get, set |
| x | float | get, set |
| xMax | float | get, set |
| xMin | float | get, set |
| y | float | get, set |
| yMax | float | get, set |
| yMin | float | get, set |
| zero | UnityEngineRect | get |
Methods
Contains
Contains(point: Vector2) -> boolContains(point: Vector3, allowInverse: bool) -> boolContains(point: Vector3) -> boolEquals
Equals(other: object) -> boolEquals(other: UnityEngineRect) -> boolGetHashCode
GetHashCode() -> intGetType
GetType() -> SystemTypeMinMaxRect
static MinMaxRect(xmin: float, ymin: float, xmax: float, ymax: float) -> UnityEngineRectnew
static new(x: float, y: float, width: float, height: float) -> UnityEngineRectstatic new(source: UnityEngineRect) -> UnityEngineRectstatic new(position: Vector2, size: Vector2) -> UnityEngineRectNormalizedToPoint
static NormalizedToPoint(rectangle: UnityEngineRect, normalizedRectCoordinates: Vector2) -> Vector2Overlaps
Overlaps(other: UnityEngineRect, allowInverse: bool) -> boolOverlaps(other: UnityEngineRect) -> boolPointToNormalized
static PointToNormalized(rectangle: UnityEngineRect, point: Vector2) -> Vector2Set
Set(x: float, y: float, width: float, height: float) -> voidToString
ToString() -> stringToString(format: string, formatProvider: SystemIFormatProvider) -> stringToString(format: string) -> string