centerContainer

inline fun Node.centerContainer(callback: CenterContainer.() -> Unit = {}): CenterContainer

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

Return

the newly created CenterContainer

Parameters

callback

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


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

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

Return

the newly created CenterContainer

Parameters

callback

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