open fun replaceAndSwitchScene(scene: Scene!, location: Int): Boolean
Replaces a Scene
at the specified index, switching to the replacement immediately on the next frame. This does not validate the index.
scene
- Scene!: The Scene
to add.
location
- Int: The index of the scene to replace.
Return
Boolean: boolean
True if the replace task was successfully queued.
open fun replaceAndSwitchScene(oldScene: Scene!, newScene: Scene!): Boolean
Replaces the specified Scene
in the renderer with the new one, switching to it immediately on the next frame. If the scene to replace does not exist, nothing will happen.
oldScene
- Scene!: Scene
object to be replaced.
newScene
- Scene!: Scene
which will replace the old.
Return
Boolean: boolean
True if the replace task was successfully queued.
open fun replaceAndSwitchScene(scene: Scene!, location: Int): Boolean
Replaces a Scene
at the specified index, switching to the replacement immediately on the next frame. This does not validate the index.
scene
- Scene!: The Scene
to add.
location
- Int: The index of the scene to replace.
Return
Boolean: boolean
True if the replace task was successfully queued.
open fun replaceAndSwitchScene(oldScene: Scene!, newScene: Scene!): Boolean
Replaces the specified Scene
in the renderer with the new one, switching to it immediately on the next frame. If the scene to replace does not exist, nothing will happen.
oldScene
- Scene!: Scene
object to be replaced.
newScene
- Scene!: Scene
which will replace the old.
Return
Boolean: boolean
True if the replace task was successfully queued.