UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Class which toggles the teleport on the right thumb stick input its use in VR unity games"
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Class which toggles the teleport on the right thumb stick input /// </summary> public class Locomotion : MonoBehaviour { public Teleporter teleporter; private bool locked = false; void Update() { if (OVRInput.GetDown(OVRInput.RawButton.RThumbstickUp)