label

inline fun Node.label(callback: Label.() -> Unit = {}): Label

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


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

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