Class SceneScaleMode
- Namespace
- Fantas
- Assembly
- Fantas.dll
SceneScale configure how the current Scene will be scaled when the window or view is resized. The resize could happen because the user resized the window or rotated the device
public sealed class SceneScaleMode : Enum
- Inheritance
-
SceneScaleMode
Fields
AspectFill
Preserve the aspect ratio of scene, and fill the whole visible area, cropping edges
public const SceneScaleMode AspectFill = 1
Field Value
AspectFit
Show the whole scene preserving aspect ratio, and showing letter box to display if needed
public const SceneScaleMode AspectFit = 2
Field Value
Fill
Fill is the default value, when the scaleMode is set to fill the size set to the scene will be preserved and scaled to fill the contents of the window, the Scene.SizeChanged will not be called
public const SceneScaleMode Fill = 0
Field Value
ResizeFill
Resize the scene to fill the viewport.
public const SceneScaleMode ResizeFill = 3
Field Value
value__
public int value__