編集

次の方法で共有


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

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.

Applies to