Skip to content

Main Menu Logic

eisclimber edited this page Feb 11, 2024 · 2 revisions

Basic Menu Logic

class in ExPresSXR.UI.Menu / Extends BasicMenuLogic
Component added via Component Menu

Description

Based on BasicMenuLogic, implements a main menu for switching to the game scene directly.

Members

Editor Properties

  • int _gameSceneIndex: The scene index of your game scene. It must be added via the Build Settings and should be greater than 0 (index 0 is the startup scene which should be the menu scene). Default: 1
  • bool _changeWithFade: If enabled, will change to the new scene with fade. A reference to the rig is required if set to true. Default: true
  • ExPresSXRRig _rig: Reference to the ExPresSXRRig used for fading. Required if changing with fade.

Public Methods

  • void ChangeToGameScene(): Changes to the game scene as configured with optional fade.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally