예제 #1
0
    /// <summary>
    /// 获取定位信息
    /// </summary>
    /// <param name="deviceIndex">设备类型</param>
    /// <returns>Nolo_Transform</returns>
    public static Nolo_Transform GetPose(int deviceIndex)
    {
#if (UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN)
        return(NOLO.NOLOClient_V2_API.GetPoseByDeviceType(deviceIndex));
#elif UNITY_ANDROID
        return(new Nolo_Transform(NoloClientSo.GetPoseByDeviceType(deviceIndex)));
#endif
    }
예제 #2
0
    /// <summary>
    /// 获取设备连接状态
    /// </summary>
    /// <param name="deviceIndex"></param>
    /// <returns></returns>
    public static bool GetNoloConnectStatus(int deviceIndex)
    {
#if (UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN)
        return(NOLO.NOLOClient_V2_API.GetNoloConnectStatus(deviceIndex));
#elif UNITY_ANDROID
        return(NoloClientSo.GetPoseByDeviceType(deviceIndex).bDeviceIsConnected);
#endif
    }