Search Results for

    Show / Hide Table of Contents

    Class CanvasScaler.ScalingMode

    Canvas scaling modes.

    Inheritance
    System.Object
    CanvasScaler.ScalingMode
    Namespace: FlaxEngine.GUI
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class ScalingMode : Enum

    Fields

    ConstantPhysicalSize

    Applies constant scale to the whole UI in physical units (depends on the screen DPI). Ensures the UI will have specific real-world size no matter the screen resolution.

    Declaration
    public const CanvasScaler.ScalingMode ConstantPhysicalSize
    Field Value
    CanvasScaler.ScalingMode

    ConstantPixelSize

    Applies constant scale to the whole UI in pixels.

    Declaration
    public const CanvasScaler.ScalingMode ConstantPixelSize
    Field Value
    CanvasScaler.ScalingMode

    ScaleWithDpi

    Applies scaling curve to the UI depending on the screen DPI.

    Declaration
    public const CanvasScaler.ScalingMode ScaleWithDpi
    Field Value
    CanvasScaler.ScalingMode

    ScaleWithResolution

    Applies min/max scaling to the UI depending on the screen resolution. Ensures the UI size won't go below min or above max resolution to maintain it's readability.

    Declaration
    public const CanvasScaler.ScalingMode ScaleWithResolution
    Field Value
    CanvasScaler.ScalingMode

    value__

    Declaration
    public int value__
    Field Value
    System.Int32

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat