using System.Collections; using System.Collections.Generic; using UnityEngine; using VRTK; /// /// 手柄提示案例 /// public class HandHintExampleTest : MonoBehaviour { public SDK_BaseController.ControllerHand _controllerHand = SDK_BaseController.ControllerHand.Right; public SDK_BaseController.ButtonTypes _buttonType = SDK_BaseController.ButtonTypes.Touchpad; public void ShowHandHintWithButtonType() { HandHintController.GetInstance().ShowHandHint(_controllerHand, _buttonType); } public void CloseHandHintWithButtonType() { HandHintController.GetInstance().CloseHandHint(_controllerHand, _buttonType); } /// /// 按钮提示全部关闭或者全部打开 /// /// 提示状态 public void SetHandHintState(bool state) { HandHintController.GetInstance().SetHandHint(_controllerHand, state); } /// /// 按钮提示全部关闭或者全部打开 /// /// 提示状态 /// 是否开启闪烁 public void SetHandHintState(bool state, bool flash) { HandHintController.GetInstance().SetHandHint(_controllerHand, state, flash); } }