| 1 | /************************************************************************************ |
| 2 | |
| 3 | Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved. |
| 4 | |
| 5 | Licensed under the Oculus SDK License Version 3.4.1 (the "License"); |
| 6 | you may not use the Oculus SDK except in compliance with the License, |
| 7 | which is provided at the time of installation or download, or which |
| 8 | otherwise accompanies this software in either electronic or hard copy form. |
| 9 | |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | https://developer.oculus.com/licenses/sdk-3.4.1 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, the Oculus SDK |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | ************************************************************************************/ |
| 21 | |
| 22 | using System.Collections; |
| 23 | using System.Collections.Generic; |
| 24 | using UnityEngine; |
| 25 | using UnityEditor; |
| 26 | |
| 27 | public class OVRDeviceSelector |
| 28 | { |
| 29 | public static bool isTargetDeviceGearVrOrGo |
| 30 | { |
| 31 | get |
| 32 | { |
| 33 | OVRProjectConfig projectConfig = OVRProjectConfig.GetProjectConfig(); |
| 34 | return projectConfig.targetDeviceTypes.Contains(OVRProjectConfig.DeviceType.GearVrOrGo); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | public static bool isTargetDeviceQuest |
| 39 | { |
| 40 | get |
| 41 | { |
| 42 | OVRProjectConfig projectConfig = OVRProjectConfig.GetProjectConfig(); |
| 43 | return projectConfig.targetDeviceTypes.Contains(OVRProjectConfig.DeviceType.Quest); |
| 44 | } |
| 45 | } |
| 46 | } |