using System.Collections.Generic; using UnityEngine; namespace Rokid.UXR.Config { public class DeviceInfos { private static List info; public static List GetInfos() { if (info == null) { info = Newtonsoft.Json.JsonConvert.DeserializeObject>(Resources.Load("Configs/DeviceInfo").ToString()); } return info; } } [System.Serializable] public class DeviceInfo { /// 设备编号 public int DeviceId; /// 设备名称 public string DeviceName; /// 设备PID public int PID; /// FOV public float CameraFov; /// 是否有相机Camera public int HaveCamera; } }