<!--
{
  "documentType" : "article",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/creating-a-scene-with-a-transparent-background",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Creating a Scene with a Transparent Background"
}
-->

# Creating a Scene with a Transparent Background

Set a transparent background color to show the content of the views below.

## Discussion

To overlay content rendered with SpriteKit on top of another view, follow these steps:

1. Set the scene’s [`backgroundColor`](/documentation/SpriteKit/SKScene/backgroundColor) to clear.
2. Enable [`allowsTransparency`](/documentation/SpriteKit/SKView/allowsTransparency) on the view.
3. Set the view’s <doc://com.apple.documentation/documentation/UIKit/UIView/backgroundColor> to `clear`.

---

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)