Spacing
Spacing value supporting numeric or vector representation.
Overview
Spacing can be represented as:
- A single value (all sides the same)
- Two values (horizontal, vertical)
- Four values (top, right, bottom, left)
- Vector2 object
Examples
// All sides the same
spacing: 10;
// Horizontal, vertical
spacing: [10, 20];
// Top, right, bottom, left
spacing: [10, 20, 30, 40];
// Using vector
spacing: new Vector2(10, 20);