Class FontSizePreset
Serializable mapping of a logical font size key to a base float size.
Used by UnityUiSettings to define configurable font size presets
that can be edited in the Unity Inspector.
Inherited Members
Namespace: Serenity.Ui.Installation.Settings
Assembly: Serenity.UnityUi.Installation.dll
Syntax
public class FontSizePreset
Constructors
FontSizePreset(string, float)
Creates a new FontSizePreset with the specified key and size.
Declaration
public FontSizePreset(string key, float size)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The logical key. |
| float | size | The base font size. |
Fields
Key
Declaration
public string Key
Field Value
| Type | Description |
|---|---|
| string | The logical key for this font size preset (e.g., "small", "medium", "big"). |
Size
Declaration
public float Size
Field Value
| Type | Description |
|---|---|
| float | The base font size in points for this preset. |