RectOffset
Offsets for rectangles, borders, etc.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Implements: IFormattable
public class RectOffset : IFormattable
Remarks
Used all over the place by GUIStyle.
Constructors
Constructor | Description |
|---|---|
| RectOffset() | Creates a new rectangle with offsets. |
| RectOffset(System.Int32,System.Int32,System.Int32,System.Int32) | Creates a new rectangle with offsets. |
Properties
Property | Description |
|---|---|
| bottom | Bottom edge size. |
| horizontal | Shortcut for left + right. (Read Only) |
| left | Left edge size. |
| right | Right edge size. |
| top | Top edge size. |
| vertical | Shortcut for top + bottom. (Read Only) |