stage

fun stage(batch: Batch = SpriteBatch(), viewport: Viewport = getDefaultViewport()): Stage

Allows to leverage named and default parameters to initiate a custom Stage. batch will be used to render the Stage, while viewport's camera will affect how the Stage is rendered. If any of the parameters are not given, the used default values match Stage no-arg constructor.