Gyroscope State Manager
Last updated
Last updated
The Gyroscope State Manager is a critical component integral to the OVRTK instantiation. Its primary responsibility is to efficiently manage the gyroscope state, offering developers an accessible and streamlined approach to control and supervise gyroscope-related features. In this comprehensive documentation, we will delve into the core functionalities and two paramount parameters of the Gyroscope State Manager.
Functionalities:
Gyroscope State Management:
Description: The Gyroscope State Manager serves as the central hub for overseeing the state of the gyroscope within the OVRTK instantiation. It provides developers with the means to effortlessly enable or disable gyroscope functionality as needed.
Usage: This core functionality ensures precise control over the gyroscope, allowing developers to fine-tune its behaviour and integration within the application.
User Notification Mechanism:
Description: In cases where a device lacks gyroscope support, the Gyroscope State Manager ensures users are informed about this limitation through a warning mechanism. The Gyro Not Supported Pop Up parameter is a pivotal component in conveying this critical information to users.
Usage: The warning message generated by the Gyro Not Supported Pop Up parameter enhances user understanding and ensures that users are aware of the absence of gyroscope support, preventing confusion and optimizing the user experience.
Parameters:
List of Gyroscope Manager (Gyroscope Manager Array):
Description: The List of Gyroscope Manager parameter is a crucial element in the Gyroscope State Manager. It is essentially a list of Gyroscope Manager components, each associated with a specific camera within the application.
Usage: These Gyroscope Manager components are vital for enabling and controlling gyroscope functionality for individual cameras. This level of control is indispensable for precise motion tracking, orientation management, and a tailored user experience.
Gyro Not Supported Pop Up:
Description: The Gyro Not Supported Pop Up parameter functions as a repository for the warning message that will be displayed when a device lacks gyroscope support.
Usage: The warning message ensures that users are informed about the absence of gyroscope support, improving their understanding and avoiding any confusion related to the device's capabilities.