getScene

inline fun <Type : SceneType> getScene(): Type
open fun <Type : SceneType> getScene(type: KClass<Type>): Type

Returns the cached instance of Scene of the selected type.

Return

the instance of Scene extending passed Type.

See also

Parameters

Type

concrete class of the Scene instance. The scene instance of this type must have been added with addScene before calling this method.

Throws

if instance of the selected Type is not registed with addScene