FontAutoSize
Automatic font sizing settings for the Advanced Text Generator.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.TextCore
- Assembly: UnityEngine.TextCoreTextEngineModule
public struct FontAutoSize
Fields
Value | Description |
|---|---|
| enabled | Shrink or grow the font size between _minSize and _maxSize so the text fits the extents. |
| maxSize | Maximum font size, in pixels. |
| minSize | Minimum font size, in pixels. |
Constructors
Constructor | Description |
|---|---|
| FontAutoSize(System.Boolean,System.Single,System.Single) | Creates automatic sizing settings. |
Static Properties
Property | Description |
|---|---|
| Default | Automatic sizing disabled, with a size range of 0 to 100 pixels. |