Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNSceneMBS class.

SCNSceneMBS.scene as SCNSceneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an empty scene.

An empty scene contains only a root SCNNode object with no contents. To populate the scene, add children to the root node.

SCNSceneMBS.sceneNamed(name as string) as SCNSceneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Loads a scene from a file with the specified name in the app’s main bundle.

name: The name of a scene file in the app bundle’s resources directory.

Returns a new scene object, or nil if no scene could be loaded.

This method provides a convenient way to load a complete scene from a file in the app’s main bundle. Calling this method is equivalent to using the NSBundle class to locate the scene file and passing the resulting URL to the sceneWithURL method, specifying no options and no error handling.

For more detailed options or to load only part of a file’s scene graph, use the SCNSceneSource class.

When creating a scene using Xcode's Scene Editor or an external tool, you should copy your scene file into a directory with the .scnassets extension inside your app bundle. You should also place any image files referenced as textures from that scene in an Asset Catalog. Xcode will optimize the scene and texture resources for best performance on each target device, and prepare your texture resources for delivery features such as App Thinning and On-Demand Resources.

See also:

SCNSceneMBS.sceneNamed(name as string, folder as folderItem, options as Dictionary = nil) as SCNSceneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Loads a scene from a file with the specified name in a specific subdirectory of the app’s main bundle.

name: The name of a scene file in the app bundle.
directory: The path to the subdirectory of the bundle’s resources directory containing the scene file.
options: A dictionary of options affecting scene loading, or nil for default options. For available keys, see Scene Loading Options.

Returns a new scene object, or nil if no scene could be loaded.

This method provides a convenient way to load a complete scene from a file in the app’s main bundle. Calling this method is equivalent to using the NSBundle class to locate the scene file and passing the resulting URL to the sceneWithURL method.

For more detailed options or to load only part of a file’s scene graph, use the SCNSceneSource class.

When creating a scene using Xcode's Scene Editor or an external tool, you should copy your scene file into a directory with the .scnassets extension inside your app bundle. You should also place any image files referenced as textures from that scene in an Asset Catalog. Xcode will optimize the scene and texture resources for best performance on each target device, and prepare your texture resources for delivery features such as App Thinning and On-Demand Resources.

See also:

SCNSceneMBS.sceneWithFile(file as folderItem, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Loads a scene from the specified file.

file: The scene file to load.
options: A dictionary of options affecting scene loading, or nil for default options. For available keys, see Scene Loading Options.
error: If an error occurs, this pointer is set to an NSError object describing the error. If you do not want error information, pass in nil.

Returns a new scene object, or nil if no scene could be loaded.

This method provides a convenient way to load a complete scene from a file at an arbitrary URL. For more detailed options or to load only part of a file’s scene graph, use the SCNSceneSource class.

When creating a scene using Xcode's Scene Editor or an external tool, you should copy your scene file into a directory with the .scnassets extension inside your app bundle. You should also place any image files referenced as textures from that scene in an Asset Catalog. Xcode will optimize the scene and texture resources for best performance on each target device, and prepare your texture resources for delivery features such as App Thinning and On-Demand Resources.

Some examples using this method:

SCNSceneMBS.sceneWithURL(FileURL as string, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Loads a scene from the specified URL.

url: The URL to the scene file to load.
options: A dictionary of options affecting scene loading, or nil for default options. For available keys, see Scene Loading Options.
error: If an error occurs, this pointer is set to an NSError object describing the error. If you do not want error information, pass in nil.

Returns a new scene object, or nil if no scene could be loaded.

This method provides a convenient way to load a complete scene from a file at an arbitrary URL. For more detailed options or to load only part of a file’s scene graph, use the SCNSceneSource class.

When creating a scene using Xcode's Scene Editor or an external tool, you should copy your scene file into a directory with the .scnassets extension inside your app bundle. You should also place any image files referenced as textures from that scene in an Asset Catalog. Xcode will optimize the scene and texture resources for best performance on each target device, and prepare your texture resources for delivery features such as App Thinning and On-Demand Resources.

SCNSceneMBS.SCNSceneEndTimeAttributeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the constant name for the attributes.

A floating-point value for the end time of the scene.

SCNSceneMBS.SCNSceneExportDestinationURL as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The final destination URL (an NSURLMBS object) for the exported scene file.

Use this option if you export a scene to a temporary directory and then move it to a final location. You must specify a final destination URL if your scene references external resources, such as image files for textures. SceneKit uses this URL to construct appropriate paths for external resources when writing the scene file.

SCNSceneMBS.SCNSceneFrameRateAttributeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the constant name for the attributes.

A floating-point value (in an NSNumber object) for the frame rate of the scene.
This value may be present in scenes loaded from scene files produced using external tools, but has no effect on SceneKit’s rendering of the scene.

SCNSceneMBS.SCNSceneStartTimeAttributeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the constant name for the attributes.

A floating-point value for the start time of the scene.

SCNSceneMBS.SCNSceneUpAxisAttributeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
One of the constant name for the attributes.

An SCNVector3MBS object (in an NSValueMBS object) specifying the orientation of the scene.

This value may be present in scenes loaded from scene files produced using external tools, but has no effect on SceneKit’s processing of the scene. Use this vector when combining elements from different scenes so that they appear in their expected orientation.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...