void OnSceneLoaded(Scene scene, LoadSceneMode mode) { if (trackingSpace == null) { Debug.LogWarning("OVRInputModule did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } }
void Awake() { if (trackingSpace == null) { Debug.LogWarning("OVRPointerVisualizer did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } }
protected override void Awake() { base.Awake(); if (trackingSpace == null) { Debug.LogWarning("OVRInputModule did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } }
void Awake() { if (trackingSpace == null) { Debug.LogWarning("OVRRawRaycaster did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } centreEyeAnchor = trackingSpace.transform.Find("CenterEyeAnchor"); }
void Awake() { if (trackingSpace == null) { Debug.LogWarning("OVRRawRaycaster did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } centreEyeAnchor = trackingSpace.transform.Find("CenterEyeAnchor"); playerController = GameObject.Find("OVRPlayerController").transform; if (playerController == null) { Debug.LogError("Could not find OVRPlayerController in scene"); } }
void Awake() { if (trackingSpace == null) { Debug.LogWarning("OVRPointerVisualizer did not have a tracking space set. Looking for one"); trackingSpace = OVRInputHelpers.FindTrackingSpace(); } if (gazePointer != null) { // gazePointerにコライダが付いていると動作に支障をきたすのでオフっておく。 var collider = gazePointer.GetComponent <Collider>(); if (collider != null) { collider.enabled = false; } } if (inputModule == null) { inputModule = EventSystem.current.currentInputModule as OVRInputModule; } }