MaxstARSDK  3.5.0
AbstractConfigurationScriptableObject.cs
1 /*==============================================================================
2 Copyright 2017 Maxst, Inc. All Rights Reserved.
3 ==============================================================================*/
4 
5 using UnityEngine;
6 
7 namespace maxstAR
8 {
12  public class AbstractConfigurationScriptableObject : ScriptableObject
13  {
14  [SerializeField]
15  private string licenseKey = null;
19  public string LicenseKey
20  {
21  set { licenseKey = value; }
22  get { return licenseKey; }
23  }
24 
25  [SerializeField]
26  private int webcamType = 0;
30  public int WebcamType
31  {
32  set { webcamType = value; }
33  get { return webcamType; }
34  }
35 
36  [SerializeField]
37  private CameraDevice.CameraType cameraType = CameraDevice.CameraType.Rear;
42  {
43  set { cameraType = value; }
44  get { return cameraType; }
45  }
46 
47  [SerializeField]
48  private CameraDevice.CameraResolution cameraResolution = CameraDevice.CameraResolution.Resolution640x480;
53  {
54  set { cameraResolution = value; }
55  get { return cameraResolution; }
56  }
57 
58  [SerializeField]
64  {
65  set { wearableType = value; }
66  get { return wearableType; }
67  }
68 
69  private static AbstractConfigurationScriptableObject configuration = null;
70 
76  {
77  if (configuration == null)
78  {
79  configuration = Resources.Load<AbstractConfigurationScriptableObject>("Configuration");
80 
81  // To Create Asset
82  //configuration = CreateInstance<ConfigurationScriptableObject>();
83  //AssetDatabase.CreateAsset(configuration, "Assets/Resources/Configuration.asset");
84  //AssetDatabase.Refresh();
85  }
86 
87  if (configuration == null)
88  {
89  Debug.LogError("Configuration is null");
90  }
91 
92  return configuration;
93  }
94  }
95 }
static AbstractConfigurationScriptableObject GetInstance()
Get configuration asset instance
WearableType
Wearable Device Type
CameraResolution
Supported camera resolution
Definition: CameraDevice.cs:53
CameraType
Supported camera type (Mobile only)
Definition: CameraDevice.cs:37
API for wearable calibration.
CameraDevice.CameraResolution CameraResolution
Select camera resolution
WearableCalibration.WearableType WearableType
Select wearable device type
class for camera device handling
Definition: CameraDevice.cs:17