Click or drag to resize

HandGui Class

Manager class for the HandGui
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.UIHandGui

Namespace:  ImmerseSDK.UI
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class HandGui : SingletonBehaviour

The HandGui type exposes the following members.

Constructors
  NameDescription
Public methodHandGui
Initializes a new instance of the HandGui class
Top
Properties
  NameDescription
Public propertyHandGuiType
Type of HandGui this is
Public propertyIsDetached
True if this menu has been detached
Public propertyIsHandGuiEnabled
Dynamically enable/disable HandGui. This is a global switch for the entire menu. It won't hide the watch, just disable activation of the menu
Public propertyIsVisible
True if HandGui is currently visible
Public propertyNumberOfNotifications
Number of notifications currently active
Public propertyNumberOfPages
The number of pages currently on the hand menu
Top
Methods
  NameDescription
Public methodAddCommandsToPage
Adds commands to an existing page to the HandGui.
Public methodAddCustomPage(String, Sprite, ListUICommand)
Adds a custom page to the HandGui.
Public methodAddCustomPage(String, Sprite, String, HandGuiPage)
Adds a custom page to the HandGui from a prefab
Public methodAddCustomPage(String, Sprite, String, ListUICommand)
Adds a custom page to the HandGui.
Public methodAddNotification
Adds a new notification
Public methodCoroutineInitialise
Override this to perform initialisation tasks This coroutine is started in Awake(). To execute code in Awake(), override OnAwake()
(Overrides SingletonBehaviourCoroutineInitialise.)
Public methodEnableCommandOnPage
Enables/Disables a command on the page.
Public methodHasCustomPage
Returns true if the custom page exists, otherwise false
Protected methodOnAwake
Override this method to call code in the Awake() method (after singleton registration, but before coroutine)
(Overrides SingletonBehaviourOnAwake.)
Public methodRemoveCommandsFromPage
Removes commands from an existing page to the HandGui.
Public methodRemoveNotification
Remove a previously added notification
Public methodRemovePage
Removes a page with the given ID
Public methodSetPageAvailable
If the page is available, it can be selected from the top shelf. If not, it is hidden from the top shelf.
Public methodUpdateCommandColorOnPage
Applies a color to a command on the page. Pass in null to revert back to original default color.
Top
Events
  NameDescription
Public eventOnDetached
Fired whenever the handGui is detached
Public eventOnNotificationAdded
Fired whenever a notification are added
Public eventOnNotificationRemoved
Fired whenever a notification are removed
Public eventOnNotificationsUpdated
Fired whenever notifications are changed (added or removed)
Public eventOnVisibilityChanged
Fired whenever the handGui is shown/hidden
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also