Class SKSpriteNode

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, SKWarpable, UIActivityItemsConfigurationProviding, UIFocusEnvironment, UIFocusItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIUserActivityRestoring, ObjCProtocol

public class SKSpriteNode
extends SKNode
implements SKWarpable
  • Constructor Details

    • SKSpriteNode

      public SKSpriteNode()
    • SKSpriteNode

      protected SKSpriteNode​(NSObject.Handle h, long handle)
    • SKSpriteNode

      protected SKSpriteNode​(NSObject.SkipInit skipInit)
    • SKSpriteNode

      public SKSpriteNode​(SKTexture texture, UIColor color, CGSize size)
    • SKSpriteNode

      public SKSpriteNode​(SKTexture texture)
    • SKSpriteNode

      public SKSpriteNode​(String name)
    • SKSpriteNode

      public SKSpriteNode​(UIColor color, CGSize size)
    • SKSpriteNode

      public SKSpriteNode​(NSCoder aDecoder)
    • SKSpriteNode

      public SKSpriteNode​(SKTexture texture, CGSize size)
    • SKSpriteNode

      public SKSpriteNode​(SKTexture texture, SKTexture normalMap)
    • SKSpriteNode

      public SKSpriteNode​(String name, boolean generateNormalMap)
  • Method Details

    • getTexture

      public SKTexture getTexture()
    • setTexture

      public void setTexture​(SKTexture v)
    • getNormalTexture

      public SKTexture getNormalTexture()
    • setNormalTexture

      public void setNormalTexture​(SKTexture v)
    • getLightingBitMask

      public int getLightingBitMask()
    • setLightingBitMask

      public void setLightingBitMask​(int v)
    • getShadowCastBitMask

      public int getShadowCastBitMask()
    • setShadowCastBitMask

      public void setShadowCastBitMask​(int v)
    • getShadowedBitMask

      public int getShadowedBitMask()
    • setShadowedBitMask

      public void setShadowedBitMask​(int v)
    • getCenterRect

      public CGRect getCenterRect()
    • setCenterRect

      public void setCenterRect​(CGRect v)
    • getColorBlendFactor

      public double getColorBlendFactor()
    • setColorBlendFactor

      public void setColorBlendFactor​(double v)
    • getColor

      public UIColor getColor()
    • setColor

      public void setColor​(UIColor v)
    • getBlendMode

      public SKBlendMode getBlendMode()
    • setBlendMode

      public void setBlendMode​(SKBlendMode v)
    • getAnchorPoint

      public CGPoint getAnchorPoint()
    • setAnchorPoint

      public void setAnchorPoint​(CGPoint v)
    • getSize

      public CGSize getSize()
    • setSize

      public void setSize​(CGSize v)
    • getShader

      public SKShader getShader()
    • setShader

      public void setShader​(SKShader v)
    • getAttributeValues

      public NSDictionary<NSString,​SKAttributeValue> getAttributeValues()
      Overrides:
      getAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • setAttributeValues

      public void setAttributeValues​(NSDictionary<NSString,​SKAttributeValue> v)
      Overrides:
      setAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • getWarpGeometry

      public SKWarpGeometry getWarpGeometry()
      Specified by:
      getWarpGeometry in interface SKWarpable
    • setWarpGeometry

      public void setWarpGeometry​(SKWarpGeometry v)
      Specified by:
      setWarpGeometry in interface SKWarpable
    • getSubdivisionLevels

      public long getSubdivisionLevels()
      Specified by:
      getSubdivisionLevels in interface SKWarpable
    • setSubdivisionLevels

      public void setSubdivisionLevels​(long v)
      Specified by:
      setSubdivisionLevels in interface SKWarpable
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(SKTexture texture, UIColor color, CGSize size)
    • init

      protected long init​(SKTexture texture)
    • init

      protected long init​(String name)
    • init

      protected long init​(UIColor color, CGSize size)
    • init

      protected long init​(NSCoder aDecoder)
      Overrides:
      init in class SKNode
    • scaleToSize

      public void scaleToSize​(CGSize size)
      Since:
      Available in iOS 10.0 and later.
    • valueForAttribute

      public SKAttributeValue valueForAttribute​(String key)
      Since:
      Available in iOS 10.0 and later.
    • setValueForAttribute

      public void setValueForAttribute​(SKAttributeValue value, String key)
      Since:
      Available in iOS 10.0 and later.
    • create

      protected static long create​(SKTexture texture, CGSize size)
    • create

      protected static long create​(SKTexture texture, SKTexture normalMap)
    • create

      protected static long create​(String name, boolean generateNormalMap)