Description

The VG_HandStatusDebugger is a public script that shows the current status of hands (VG_HandStatus) during runtime in the Editor.

The VG_HandStatusDebugger provides a tutorial on some of the members of VG_HandStatus which are central to many of the API functions, such as GetHands() or some Events.

When you want to enable this script, it is recommended to add it on the same GameObject where your MyVirtualGrasp script is.

You should not add this component to individual objects because this is a global setting that is not linked to specific objects.
// ThirdParty/VirtualGrasp/Scripts/VG_HandStatusDebugger.cs

public class VG_HandStatusDebugger : MonoBehaviour
{
    [Tooltip("This list will be updated during runtime with the VG_HandStatus of all hands.")]
    public List<VG_HandStatus> m_hands = new List<VG_HandStatus>();

#if UNITY_EDITOR
    public void Update()
    {
        m_hands.Clear();
        foreach (VG_HandStatus hand in VG_Controller.GetHands())
            m_hands.Add(hand);
    }
#endif
}
The VG_HandStatusDebugger will continuously update the list of VG_HandStatus in the Inspector. Hand status variables are out of the date in this video and will be updated soon
If this video shows "This video is unavailable," please try to refresh the page.