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; } }
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; } }
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; } }
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; } }