camera3d

inline fun Node.camera3d(callback: Camera3D.() -> Unit = {}): Camera3D

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

Return

the newly created Camera3D

Parameters

callback

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


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

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

Return

the newly created Camera3D

Parameters

callback

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