Rect
More information can be found in the Unity API Reference and maybe in the Unity Manual.
Constructors
Constructor |
Description |
|---|---|
Members
Member |
Description |
|---|---|
Methods
Method |
Description |
|---|---|
Static members
Member |
Description |
|---|---|
|
Static methods
Method |
Description |
|---|---|
Operators
Operator |
Description |
|---|---|
Details
-
class Rect
-
Rect Rect(float x, float y, float width, float height)
-
Rect Rect()
-
Vector2 center
-
float height
-
Vector2 max
-
Vector2 min
-
Vector2 position
-
Vector2 size
-
float width
-
float x
-
float xMax
-
float xMin
-
float y
-
float yMax
-
float yMin
-
bool Contains(Vector2 point)
-
bool Contains(Vector3 point)
-
bool Contains(Vector3 point, bool allowInverse)
-
int GetHashCode()
-
bool Overlaps(Rect other)
-
bool Overlaps(Rect other, bool allowInverse)
-
void Set(float x, float y, float width, float height)
-
string ToString()
-
string ToString(string format)
-
static const Rect zero
-
static Rect MinMaxRect(float xmin, float ymin, float xmax, float ymax)
-
Rect Rect(float x, float y, float width, float height)