-
Notifications
You must be signed in to change notification settings - Fork 14
Helper classes
There are two main helper classes to help with development with BDK. These are BdkLogger and TypeHelpers.
BdkLogger is a static class that allows the developer to log debug, warning and error logs in the HoloLens. This class is best used in combination with the script LogToTextComponent, that allows the debug and error messages to be displayed in the HoloLens. Below are a description of the most important methods in BdkLogger.
Log allows the developer to log any information they want. The log may be passed a LogSeverity parameter which allows the logs to be filtered by severity if desired.
Logs an exception with a custom message as well as the error message.
Script that allows the user to log debug and exception logs to a text mesh pro object. Useful for debugging, but should not be used for production builds as it is not optimized for that.
TypeHelpers is a static class that allows the developer to easily convert between Unity variables and System variables. The hand tracking input is based in the System framework and need to be converted to Unity variables to be used correctly in Unity.
Converts a System.Numerics.Vector3 to a UnityEngine.Vector3.
Converts a System.Numerics.Quaternion to a UnityEngine.Quaternion.
Converts a UnityEngine.Vector3 to a System.Numerics.Vector3.
Converts a UnityEngine.Quaternion to a System.Numerics.Quaternion.
Allows to send notifications to the user. These messages appear in front of the user and are dynamically timed and removed after a while.
AddMessage allows you to send a string that will be displayed as a notification to the player.