Package apple.spritekit.enums
Class SKSceneScaleMode
- java.lang.Object
-
- apple.spritekit.enums.SKSceneScaleMode
-
public final class SKSceneScaleMode extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longAspectFillScale the SKScene to fill the SKView while preserving the scene's aspect ratio.static longAspectFitScale the SKScene to fit within the SKView while preserving the scene's aspect ratio.static longFillScale the SKScene to fill the entire SKView.static longResizeFillModify the SKScene's actual size to exactly match the SKView.
-
-
-
Field Detail
-
Fill
public static final long Fill
Scale the SKScene to fill the entire SKView.- See Also:
- Constant Field Values
-
AspectFill
public static final long AspectFill
Scale the SKScene to fill the SKView while preserving the scene's aspect ratio. Some cropping may occur if the view has a different aspect ratio.- See Also:
- Constant Field Values
-
AspectFit
public static final long AspectFit
Scale the SKScene to fit within the SKView while preserving the scene's aspect ratio. Some letterboxing may occur if the view has a different aspect ratio.- See Also:
- Constant Field Values
-
ResizeFill
public static final long ResizeFill
Modify the SKScene's actual size to exactly match the SKView.- See Also:
- Constant Field Values
-
-