<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKView/showsNodeCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKView(py)showsNodeCount"
  },
  "title" : "showsNodeCount"
}
-->

# showsNodeCount

A Boolean value that indicates whether the view displays an overlay that shows physics bodies that are visible in the scene.

```
var showsNodeCount: Bool { get set }
```

## Discussion

When you enable this option, it shows the number of nodes currently in the scene’s node tree.

> Note:
> The``doc://com.apple.spritekit/documentation/SpriteKit/SKView/shouldCullNonVisibleNodes`` property affects how many nodes in the node tree are included in SpriteKit’s render pass but it doesn’t affect the ``doc://com.apple.spritekit/documentation/SpriteKit/SKView/showsNodeCount`` statistic.

You may achieve additional performance gain by actually removing nodes from the node tree manually which are off screen. For example, in the case of [`shouldCullNonVisibleNodes`](/documentation/SpriteKit/SKView/shouldCullNonVisibleNodes), there would be less nodes for SpriteKit to test every frame whether they’re on screen.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)