TiledSceneCameraDelegate

@objc
public protocol TiledSceneCameraDelegate

The TiledSceneCameraDelegate protocol defines methods for interacting with the custom SKTiledSceneCamera object. Classes conforming to this protocol are notified of camera position & zoom changes unless the TiledSceneCameraDelegate.receiveCameraUpdates flag is disabled.

This delegate also receives mouse & touch events and forwards them on to delegates accordingly.

Tiled Scene Camera Delegate

Properties

  • receiveCameraUpdates: delegate will receive camera updates.
  • currentCoordinate: currently focused map coordinate.

Instance Methods

  • containedNodesChanged: nodes visible in camera haved changed.
  • cameraPositionChanged: camera position change.
  • cameraZoomChanged: camera zoom change.
  • cameraBoundsChanged: camera bounds updated.
  • leftMouseDown: scene is clicked (macOS only).
  • rightMouseDown: scene is right-clicked (macOS only).
  • leftMouseUp: left mouse button is released (macOS only).
  • rightMouseUp: right mouse button is released (macOS only).
  • leftMouseDoubleClicked: scene is double-clicked (macOS only).
  • mousePositionChanged: mouse moves in the scene (macOS only).
  • sceneDoubleTapped: scene is double-tapped (iOS only).
  • sceneRotated: scene is rotated via gesture (iOS only).