Struct RectInt
Assembly: UnityEngine.dll
Syntax
public struct RectInt : IEquatable<RectInt>
Constructors
|
Improve this Doc
View Source
RectInt(Int32, Int32, Int32, Int32)
Declaration
public RectInt(int xMin, int yMin, int width, int height)
Parameters
|
Improve this Doc
View Source
RectInt(Vector2Int, Vector2Int)
Declaration
public RectInt(Vector2Int position, Vector2Int size)
Parameters
Properties
|
Improve this Doc
View Source
allPositionsWithin
Declaration
public RectInt.PositionEnumerator allPositionsWithin { get; }
Property Value
|
Improve this Doc
View Source
center
Declaration
public Vector2 center { get; }
Property Value
|
Improve this Doc
View Source
height
Declaration
public int height { get; set; }
Property Value
|
Improve this Doc
View Source
max
Declaration
public Vector2Int max { get; set; }
Property Value
|
Improve this Doc
View Source
min
Declaration
public Vector2Int min { get; set; }
Property Value
|
Improve this Doc
View Source
position
Declaration
public Vector2Int position { get; set; }
Property Value
|
Improve this Doc
View Source
size
Declaration
public Vector2Int size { get; set; }
Property Value
|
Improve this Doc
View Source
width
Declaration
public int width { get; set; }
Property Value
|
Improve this Doc
View Source
x
Declaration
public int x { get; set; }
Property Value
|
Improve this Doc
View Source
xMax
Declaration
public int xMax { get; set; }
Property Value
|
Improve this Doc
View Source
xMin
Declaration
public int xMin { get; set; }
Property Value
|
Improve this Doc
View Source
y
Declaration
public int y { get; set; }
Property Value
|
Improve this Doc
View Source
yMax
Declaration
public int yMax { get; set; }
Property Value
|
Improve this Doc
View Source
yMin
Declaration
public int yMin { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ClampToBounds(RectInt)
Declaration
public void ClampToBounds(RectInt bounds)
Parameters
Type |
Name |
Description |
RectInt |
bounds |
|
|
Improve this Doc
View Source
Contains(Vector2Int)
Declaration
public bool Contains(Vector2Int position)
Parameters
Returns
|
Improve this Doc
View Source
Equals(RectInt)
Declaration
public bool Equals(RectInt other)
Parameters
Type |
Name |
Description |
RectInt |
other |
|
Returns
|
Improve this Doc
View Source
SetMinMax(Vector2Int, Vector2Int)
Declaration
public void SetMinMax(Vector2Int minPosition, Vector2Int maxPosition)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods