Skip to content

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 ​

ParameterTypeDefault valueDescription
sceneSceneundefinedAny scene to show
save?booleantrueShould the current scene be saved in history

Returns ​

Scene

Shown scene

Released under the MIT License.