logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    FontSizePreset
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    In this article
    © 2026 Serenity. All Rights Reserved