- Knowledge Base
- Developer
- Unity Development Examples
-
Developer
-
RealWear Navigator™ 500 Series
- Overview
- Features and Specifications
- Wearing Your Device
- Device Setup
- Interacting with Your Device
- Device Power
- Battery Use
- Home Screen
- My Programs
- My Camera
- My Files
- My Training
- Safety
- Device Care
- Ownership Information
- User Guide
- FAQ
- Thermal Camera Module
- Display Technology Comparison
- Cleaning Your Device
-
RealWear Cloud
-
RealWear Releases
-
RealWear HMT-1®
-
RealWear HMT-1Z1®
-
RealWear Apps
-
Configure
-
RealWear Modules & Accessories
-
RealWear Navigator™ Series
Unity Development Example – Action Button
The action button on the side of the HMT allows the user to easily perform a globally configurable option, regardless of what the HMT is currently doing. The default behavior of the action button is to navigate the user back to the system’s home screen.
However, it is possible for an application to also register the action button to perform a custom action. When binding to the action button the application should usually disable the default action. Since this changes the behavior that the user may expect it is not recommended to use this feature often.
void Start()
{
// Initialize the wearHF object
// NOTE: The plugin registers itself to the WearHF system in the
// GameObject’s Awake function, so any calls to the plugin need to occur
// after that. The start function is a good choice.
m_wearHF = GameObject.Find("WearHF Manager").GetComponent();
// Disable the Action Button for this scene
m_wearHF.EnableActionButton = false;
}