control

inline fun Node.control(callback: Control.() -> Unit = {}): Control

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

Return

the newly created Control

Parameters

callback

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


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

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

Return

the newly created Control

Parameters

callback

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