예제 #1
0
 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();
     }
 }
예제 #2
0
 void Awake()
 {
     if (trackingSpace == null)
     {
         Debug.LogWarning("OVRPointerVisualizer did not have a tracking space set. Looking for one");
         trackingSpace = OVRInputHelpers.FindTrackingSpace();
     }
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 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");
 }
예제 #5
0
 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");
     }
 }
예제 #6
0
 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;
     }
 }