BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / VR / Editor / OVRDeviceSelector.cs

OVRDeviceSelector.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
OVRDeviceSelector.cs 1.5 KiB Download Raw
1/************************************************************************************
2
3Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
4
5Licensed under the Oculus SDK License Version 3.4.1 (the "License");
6you may not use the Oculus SDK except in compliance with the License,
7which is provided at the time of installation or download, or which
8otherwise accompanies this software in either electronic or hard copy form.
9
10You may obtain a copy of the License at
11
12https://developer.oculus.com/licenses/sdk-3.4.1
13
14Unless required by applicable law or agreed to in writing, the Oculus SDK
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations under the License.
19
20************************************************************************************/
21
22using System.Collections;
23using System.Collections.Generic;
24using UnityEngine;
25using UnityEditor;
26
27public 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}