---
title: rootNode
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkscene/rootnode
---

# rootNode

The SpriteKit scene managed by this GKScene object.

## Declaration

```swift
var rootNode: (any GKSceneRootNodeType)? { get set }
```

## Discussion

Discussion The GKSceneRootNodeType protocol is an indirect type for game scene classes that the GKScene class can load. SKScene is the only class currently supported for loading with the GKScene class.
