SKSceneScaleMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration whose values specify the way in which a SKScene scales to the view in which it is being displayed.
public enum SKSceneScaleMode
type SKSceneScaleMode =
- Inheritance
-
SKSceneScaleMode
Fields
Name | Value | Description |
---|---|---|
Fill | 0 | Stretch the scene to fill the view. |
AspectFill | 1 | Scale the scene to fill the view, even if the scene must be cropped. |
AspectFit | 2 | Scale the scene to fit the view, possibly letterboxing the scene. |
ResizeFill | 3 | Resize the scene so that it is the same size and shape as the view. |