GridTrackSize
The size of a single CSS Grid track (a column or a row), as used by grid-template-columns, grid-template-rows, grid-auto-columns and grid-auto-rows.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<GridTrackSize>
public struct GridTrackSize : IEquatable<GridTrackSize>
Remarks
A track size is a single sizing function (e.g. , , ), a pair, or . The layout of this struct mirrors the native and must stay blittable.
100px1frautominmax(min, max)fit-content(length)GridTrackSizeProperties
Property | Description |
|---|---|
| isAutoFill | True when this track is a |
| isAutoFit | True when this track is a |
| isFitContent | True when this track is a |
| isMinmax | True when this track is a |
| maxUnit | The maximum sizing unit (or the single unit for a plain track). |
| maxValue | The maximum sizing value (or the single value for a plain track). |
| minUnit | The minimum sizing unit. |
| minValue | The minimum sizing value. |
Static Methods
Method | Description |
|---|---|
| Auto | An |
| FitContent | A |
| Fraction | A flexible |
| MaxContent | A |
| MinContent | A |
| Minmax | A |
| Percent | A percentage track. |
| Pixels | A fixed pixel track. |
| RepeatAutoFill | A |
| RepeatAutoFit | A |