Class SKSceneScaleMode


  • public final class SKSceneScaleMode
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AspectFill
      Scale the SKScene to fill the SKView while preserving the scene's aspect ratio.
      static long AspectFit
      Scale the SKScene to fit within the SKView while preserving the scene's aspect ratio.
      static long Fill
      Scale the SKScene to fill the entire SKView.
      static long ResizeFill
      Modify the SKScene's actual size to exactly match the SKView.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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