Click or drag to resize

MagicMenu Class

The component that implements the immersive menu.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.UtilsMonoSingletonMagicMenu
            RavingBots.MagicGestures.UIMagicMenu

Namespace:  RavingBots.MagicGestures.UI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class MagicMenu : MonoSingleton<MagicMenu>

The MagicMenu type exposes the following members.

Constructors
  NameDescription
Public methodMagicMenu
Initializes a new instance of the MagicMenu class
Top
Properties
  NameDescription
Public propertyCurrentView
The currently shown view.
Public propertyShown
if the menu is shown.
Public propertySpellBookView
The instance of the spellbook view.
Public propertySpellEditView
The instance of the spell edit view.
Public propertySpellTrainView
The instance of the gesture training view.
Public propertyWelcomeView
The instance of the welcome view.
Top
Methods
  NameDescription
Private methodAlignTo
Position the menu based on the camera transform.
Protected methodAwake
Find the children components.
(Overrides MonoSingletonTAwake.)
Public methodOnGesture
Called when the user performs a gesture.
Private methodOnMenuButton
Called when the user presses the menu button.
Private methodSetCurrentView
Called when the active view changes.
Protected methodStart
Register the event handlers.
Top
Fields
  NameDescription
Private field_audioSource
The menu's audio source.
Private field_currentView
The currently shown view.
Public fieldDistanceToCamera
The distance from the camera to the UI.
Protected fieldHideSound
The sound played when the menu is hidden.
Protected fieldShowSound
The sound played when the menu is shown.
Top
See Also