コード例 #1
0
 protected virtual void OnEnable()
 {
     playArea     = VRTK_DeviceFinder.PlayAreaTransform();
     roomExtender = FindObjectOfType <VRTK_RoomExtender>();
     if (playArea == null || roomExtender == null)
     {
         VRTK_Logger.Warn(VRTK_Logger.GetCommonMessage(VRTK_Logger.CommonMessageKeys.REQUIRED_COMPONENT_MISSING_FROM_GAMEOBJECT, "VRTK_RoomExtender_PlayAreaGizmo", "PlayArea or VRTK_RoomExtender", "an active"));
         return;
     }
 }
コード例 #2
0
 private void OnEnable()
 {
     playArea = VRTK_DeviceFinder.PlayAreaTransform();
     vrtk_RoomExtender = FindObjectOfType<VRTK_RoomExtender>();
     if (playArea == null || vrtk_RoomExtender == null)
     {
         Debug.LogWarning("Could not find PlayArea or 'VRTK_RoomExtender'. Please check if they are attached to the CameraRig");
         return;
     }
 }
コード例 #3
0
 protected virtual void Awake()
 {
     playArea     = VRTK_DeviceFinder.PlayAreaTransform();
     roomExtender = FindObjectOfType <VRTK_RoomExtender>();
     if (playArea == null || roomExtender == null)
     {
         Debug.LogWarning("Could not find PlayArea or 'VRTK_RoomExtender'.");
         return;
     }
 }
コード例 #4
0
 private void OnEnable()
 {
     playArea          = VRTK_DeviceFinder.PlayAreaTransform();
     vrtk_RoomExtender = FindObjectOfType <VRTK_RoomExtender>();
     if (playArea == null || vrtk_RoomExtender == null)
     {
         Debug.LogWarning("Could not find PlayArea or 'VRTK_RoomExtender'. Please check if they are attached to the CameraRig");
         return;
     }
 }