container

inline fun Node.container(callback: Container.() -> Unit = {}): Container

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

Return

the newly created Container

Parameters

callback

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


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

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

Return

the newly created Container

Parameters

callback

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