node3d

inline fun Node.node3d(callback: Node3D.() -> Unit = {}): Node3D

Adds a Node3D to the current Node as a child and then triggers the callback

Return

the newly created Node3D

Parameters

callback

the callback that is invoked with a Node3D context in order to initialize any values


inline fun SceneGraph<*>.node3d(callback: Node3D.() -> Unit = {}): Node3D

Adds a Node3D to the current SceneGraph.root as a child and then triggers the Node3D

Return

the newly created Node3D

Parameters

callback

the callback that is invoked with a Node3D context in order to initialize any values