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
|