您好,
使用PicoVR Unity SDK(Deprecated)可以调用以下接口:
http://sdk.picovr.com/docs/UnitySDK/cn/chapter_seven.html#upvr-getdevicesn
调用方式如下: PvrUnitySDKAPI. System. UPvrGetDeviceSN()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SNTest : MonoBehaviour
{
private string sn;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
sn = Pvr_UnitySDKAPI.System.UPvr_GetDeviceSN();
Debug.Log("sn:" + sn);
}
}