setScene

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

Replaces the current scene with the registered scene instance of the 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.