Create and edit 3D scenes using SceneKit scene editor

Using SceneKit scene editor, you can quickly build, edit, and preview games and interactive 3D apps. The visual interface reduces code, streamlines design, and helps you fine-tune the rendering of your apps. When you select a source file in the Project navigator, the file opens in the scene editor in the editor area.

With the scene editor, you can:

The scene editor area is made up of three components:

Scene graph view: Displays the underlying hierarchical structure of the scene. The objects in the hierarchy, called nodes, are paired with icons identifying the nodes’ attributes.

Scene editor inspectors: Displays information about the scene objects.

Viewport: Displays the scene, defaulting to a point of view contained in a scene’s structure.

Note: If scenes are created outside Xcode, the Entities list appears above the scene graph list. Entities are separated into folders for animations, cameras, geometries, lights, and materials.

Create a scene

Add objects to a scene

Adjust the node transform parameters

Use the manipulator to adjust where the node is positioned in the scene. Drag an axis to move the node along that axis or drag an arc to rotate the node around that arc's associated axis.

Choose the alignment of the manipulator’s axes by selecting one of the options in the editing space pop-up menu.

Use the inspectors to edit a scene

  1. In the Project navigator, select a 3D scene file.

  2. In the Scene graph view or Entities list, select a node or object.

  3. In the inspector area, use the inspectors to view and change properties of the selection. The scene editor inspectors are:

Icon

Inspector

Description

Node inspector

Edit settings like position and visibility. Rename a node, apply different values to its transform coefficients, and modify its visibility.

Material inspector

Edit material properties like the lighting model, colors, and textures.

Physics inspector

Adjust how physics settings affect a node.

Scene inspector

Add and adjust properties applied to the scene, such as the environment’s lighting and physics.

See alsoPreview 3D scenes using SceneKit scene editorFox: Building a SceneKit Game with the Xcode Scene EditorSceneKit Framework Reference