Magnetic
@objcMembers
open class Magnetic : SKScene
Undocumented
-
The field node that accelerates the nodes.
Declaration
Swift
open lazy var magneticField: SKFieldNode { get set }
-
Controls whether you can select multiple nodes.
Declaration
Swift
open var allowsMultipleSelection: Bool
-
Undocumented
Declaration
Swift
open var isDragging: Bool
-
The selected children.
Declaration
Swift
open var selectedChildren: [Node] { get }
-
The object that acts as the delegate of the scene.
The delegate must adopt the MagneticDelegate protocol. The delegate is not retained.
Declaration
Swift
open weak var magneticDelegate: MagneticDelegate?
-
Undocumented
Declaration
Swift
override open var size: CGSize { get set }
-
Undocumented
Declaration
Swift
override public init(size: CGSize)
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
override open func addChild(_ node: SKNode)
-
Undocumented
Declaration
Swift
override open func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?)
-
Undocumented
Declaration
Swift
open func moveNodes(location: CGPoint, previous: CGPoint)
-
Undocumented
Declaration
Swift
open func node(at point: CGPoint) -> Node?