public void GoSense() { if (senseARInstance == null) { senseARInstance = (GameObject)Instantiate(SenseARPrefab, transform.position, transform.rotation); senseARSLAMController = GameObject.Find("SlamController").GetComponent <SenseARSLAMSystem>(); updateTexture = GameObject.Find("ARCamera").GetComponent <SenseARUpdateTextureOES>(); senseARSLAMController.m_PointCloudPrefab.SetActive(true); } }
public void InitiateAPI() { senseARInstance = null; senseARSLAMController = null; ApiArAvailability arAvailability = ApiArAvailability.AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED; NativeSession.CheckApkAvailability(ref arAvailability); if (arAvailability != ApiArAvailability.AR_AVAILABILITY_SUPPORTED_INSTALLED) { ApiArInstallStatus status = ApiArInstallStatus.AR_INSTALL_STATUS_INSTALL_REQUESTED; NativeSession.RequestInstall(1, ref status); } ApiArStatus ret = NativeSession.CheckAuthorized(getAppId()); }