scene2d

inline fun <T : Actor> scene2d(dsl: RootWidget.() -> T): T

Allows to define an actor within a DSL lambda block.

Return

Actor returned by dsl.

Parameters

dsl

will be immediately invoked. Must return an actor.