Platforms to show: All Mac Windows Linux Cross-Platform
Back to SCNNodeMBS class.
SCNNodeMBS.childNodes as SCNNodeMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
SCNNodeMBS.childNodeWithName(Name as String, recursively as Boolean = false) as SCNNodeMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
name: The name of the node to search for.
recursively: True to search the entire child node subtree, or false to search only the node’s immediate children.
If the recursive parameter is true, SceneKit uses a preorder traversal to search the child node subtree—that is, the block searches a node before it searches each of the node’s children, and it searches all children of a node before searching any of that node’s sibling nodes. Otherwise, SceneKit searches only those nodes in the node’s childNodes array.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 22.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Recursively walks over child nodes to also clear geometry by assigning nil.
Calling this method can help to mitigate problems where textures would not unload properly due to bugs in SceneKit framework.
SCNNodeMBS.clone as SCNNodeMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This method recursively copies the node and its child nodes. For a nonrecursive copy, use the inherited copy method, which creates a copy of the node without any child nodes.
Cloning or copying a node creates a duplicate of the node object, but not the geometries, lights, cameras, and other SceneKit objects attached to it—instead, each copied node shares references to these objects.
This behavior means that you can use cloning to, for example, place the same geometry at several locations within a scene without maintaining multiple copies of the geometry and its materials. However, it also means that changes to the objects attached to one node will affect other nodes that share the same attachments. For example, to render two copies of a node using different materials, you must copy both the node and its geometry before assigning a new material.
Multiple copies of an SCNGeometryMBS object efficiently share the same vertex data, so you can copy geometries without a significant performance penalty.
SCNNodeMBS.constraints as SCNConstraintMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
An array of constraint objects. Before rendering, SceneKit evaluates all constraints attached to a node hierarchy and adjusts node transformations appropriately.
Use the SCNLookAtConstraintMBS class to make a node always point toward another node even as both are moved, or the SCNTransformConstraintMBS class to apply arbitrary transformations at constraint evaluation time.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
SCNNodeMBS.Constructor(geometry as SCNGeometryMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
geometry: The geometry to be attached.
Returns a new node object with the geometry attached, or nil if initialization is not successful.
See also:
SCNNodeMBS.convertPositionFromNode(position as SCNVector3MBS, node as SCNNodeMBS) as SCNVector3MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
position: A position in the local coordinate space defined by the other node.
node: Another node in the same scene graph as the node, or nil to convert from the scene’s world coordinate space.
Returns a position in the node’s local coordinate space.
SCNNodeMBS.convertPositionToNode(position as SCNVector3MBS, node as SCNNodeMBS) as SCNVector3MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
position: A position in the node’s local coordinate space.
node: Another node in the same scene graph as the node, or nil to convert to the scene’s world coordinate space.
Returns a position in the local coordinate space defined by the other node.
SCNNodeMBS.convertTransformFromNode(position as SCNMatrix4MBS, node as SCNNodeMBS) as SCNMatrix4MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
transform: A transform relative to the local coordinate space defined by the other node.
node: Another node in the same scene graph as the node, or nil to convert from the scene’s world coordinate space.
Returns a transform relative to the node’s coordinate space.
SCNNodeMBS.convertTransformToNode(position as SCNMatrix4MBS, node as SCNNodeMBS) as SCNMatrix4MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
transform: A transform relative to the node’s coordinate space.
node: Another node in the same scene graph as the node, or nil to convert to the scene’s world coordinate space.
Returns a transform relative to the local coordinate space defined by the other node.
SCNNodeMBS.convertVectorFromNode(position as SCNVector3MBS, node as SCNNodeMBS) as SCNVector3MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
vector: A direction vector in the local coordinate space defined by the other node.
node: Another node in the same scene graph as the node, or nil to convert from the scene’s world coordinate space.
Returns a direction vector in the node’s local coordinate space.
Unlike the convertPositionFromNode method, this method ignores the translational aspect of both nodes' transforms. As such, this method is more appropriate for use with vectors that represent only directional information, such as velocity or facing.
SCNNodeMBS.convertVectorToNode(position as SCNVector3MBS, node as SCNNodeMBS) as SCNVector3MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
vector: A direction vector in the node’s local coordinate space.
node: Another node in the same scene graph as the node, or nil to convert to the scene’s world coordinate space.
Returns a direction vector in the local coordinate space defined by the other node.
Unlike the convertPositionToNode method, this method ignores the translational aspect of both nodes' transforms. As such, this method is more appropriate for use with vectors that represent only directional information, such as velocity or facing.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SceneKit | MBS Mac64bit Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The items on this page are in the following plugins: MBS Mac64bit Plugin.