meshNode

inline fun Node.meshNode(callback: MeshNode.() -> Unit = {}): MeshNode

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

Return

the newly created MeshNode

Parameters

callback

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


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

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

Return

the newly created MeshNode

Parameters

callback

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