pencil.js / navigation / displayScene
Function: displayScene()
ts
function displayScene(scene, save?): Scene;Defined in: navigation.ts:22
Hide the current scene and display a new scene
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
scene | Scene | undefined | Any scene to show |
save? | boolean | true | Should the current scene be saved in history |
Returns
Shown scene
