private WebXRControllerHand handFromString(string handValue) { WebXRControllerHand handParsed = WebXRControllerHand.NONE; if (!String.IsNullOrEmpty(handValue)) { try { handParsed = (WebXRControllerHand)Enum.Parse(typeof(WebXRControllerHand), handValue.ToUpper(), true); } catch { Debug.LogError("Unrecognized controller Hand '" + handValue + "'!"); } } return(handParsed); }
public void HapticPulse(WebXRControllerHand hand, float intensity, float duration) { #if UNITY_WEBGL Native.ControllerPulse((int)hand, intensity, duration); #endif }
public void HapticPulse(WebXRControllerHand hand, float intensity, float duration) { Native.ControllerPulse((int)hand, intensity, duration); }