|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||SceneKit||MBS Mac64bit Plugin||18.4||Yes||No||No||Yes, macOS only||No|
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.
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.
- 9 properties
- property background as SCNMaterialPropertyMBS
- property fogColor as NSColorMBS
- property fogDensityExponent as Double
- property fogEndDistance as Double
- property fogStartDistance as Double
- property lightingEnvironment as SCNMaterialPropertyMBS
- property paused as Boolean
- property rootNode as SCNNodeMBS
- property attributeForKey(key as String) as Variant
- method Constructor
- 10 shared methods
- shared method scene as SCNSceneMBS
- shared method sceneNamed(name as string) as SCNSceneMBS
- shared method sceneNamed(name as string, folder as folderItem, options as Dictionary = nil) as SCNSceneMBS
- shared method sceneWithFile(file as folderItem, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS
- shared method sceneWithURL(FileURL as string, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS
- shared method SCNSceneEndTimeAttributeKey as String
- shared method SCNSceneExportDestinationURL as String
- shared method SCNSceneFrameRateAttributeKey as String
- shared method SCNSceneStartTimeAttributeKey as String
- shared method SCNSceneUpAxisAttributeKey as String
This class has no sub classes.
Some properties using for this class:
- SCNViewMBS.scene as SCNSceneMBS
Some examples which use this class:
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MBS Xojo Chart Plugins