xMin
The minimum x-coordinate value of the RectInt. This value is inclusive.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public int xMin { get; set; }
Remarks
The RectInt.width is the difference between RectInt.xMax and . If you set a greater than the current RectInt.xMax, then RectInt.width becomes negative. RectInt.xMax and values are normalized prior to being returned such that is always the smallest of the two values and the largest. For example, a created as and later assigned returns RectInt.width of -5, RectInt.xMin of 10 and RectInt.xMax of 15. The value is equal to the smallest x-coordinate contained in the . For example, a spanning x-coordinates 0–3 has an of 0.
xMinxMinxMinxMinxMaxRectIntrRectInt r = new RectInt(0, 0, 10, 10);r.xMin = 15xMinRectIntRectIntxMin