Loads the specified SpriteKit scene file, creating a
GKScene object containing the SpriteKit scene and associated GameplayKit objects.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The name of a scene file in your app’s main bundle.
A new GameplayKit scene.
Use this initializer to load SpriteKit scenes (
.sks files) created in the Xcode SpriteKit scene editor that contain associated GameplayKit entities, components, and pathfinding graphs.