SKSceneScaleMode Enum

Definition

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

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.

Fill 0

Stretch the scene to fill the view.

ResizeFill 3

Resize the scene so that it is the same size and shape as the view.

Applies to