A container for the node hierarchy and global properties that together form a displayable 3D scene.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 2.0+
To display 3D content with SceneKit, you create a scene containing a hierarchy of the nodes and attributes that together represent your visual elements. Typically, you build your assets in a 3D visual editor, then assemble them into a scene using Xcode’s SceneKit Scene Editor, ready for SceneKit to render.
To display your scene, you need to load it at runtime, then set it as the scene property of an
Creating a Scene
The simplest way to create a scene is through Xcode’s SceneKit Scene Editor. Start by importing one or more assets from a 3D editor, such as Blender. Then you adjust the positions and attributes of the assets, and set global scene properties, such as lighting environment, to compose your scene. The scene editor creates a
.scn file, which you save to a
.scnassets folder in the app bundle. When you build your project, Xcode optimizes the scene file for your target platform.