Projects with multiple scenes

Often projects have more than one scene. In this connection, it becomes necessary to switch between scenes

Start scene selection

Create two scenes in the project

On the project page, go to the “Project settings” tab and than choose “Configurations”

../../_images/image-71.png

Click on the pencil icon, the configuration editing window will open

../../_images/image-61.png

Set the necessary parameters, namely:

  • The name of the configuration
  • Starting scene of the project
  • Default project language
  • Run in VR or PC mode
  • Permission to change mode in view mode
  • Select the default loading scene

Switching between scenes

Switching between scenes is configured in Blockly

To switch between scenes, use the “Load Scene” block located in the “Actions section”

Switch to the start scene editing mode. Add a simple button to the scene

Go to the Blockly editor of the start scene. Add a button click event, add the “Load Scene” block to the event, select the second scene. Save your changes

../../_images/image-32.png

For testing, switch to project view mode

../../_images/image-41.png

Warning

Preview mode only launches the scene selected as the start scene

Click the button which we configured previously in playmode and the second scene will start