void Start()
    {
        SenseARInstance = null;
        axisInstance    = null;
        slamController  = null;
        permissionUtil  = GameObject.Find("Instantiate").GetComponent <AndroidPermissionUtil>();

        ApiArAvailability arAvailability = ApiArAvailability.AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED;

        NativeSession.CheckApkAvailability(ref arAvailability);
        if (arAvailability == ApiArAvailability.AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED)
        {
            ApiArInstallStatus status = ApiArInstallStatus.AR_INSTALL_STATUS_INSTALL_REQUESTED;
            NativeSession.RequestInstall(1, ref status);
        }

        if (shotButton)
        {
            shotButton.gameObject.SetActive(false);
        }


        NativeSession.CheckAuthorized(getAppId());

        if (type == ReferenceImageType.Patt)
        {
            StartCoroutine(ReadConfig());
            StartCoroutine(ReadPatts());
        }

        if (type == ReferenceImageType.Database)
        {
            StartCoroutine(ReadImageDatabase());
        }
    }
Beispiel #2
0
        void Start()
        {
            SenseARInstance = null;
            axisInstance    = null;
            CloundRoom      = GetComponent <HelloARCloud_CloundRoomManager>();
            slamController  = null;
            permissionUtil  = GameObject.Find("Instantiate").GetComponent <AndroidPermissionUtil>();


            prevTouches  = new Touch[2];
            selectedObj_ = null;
            bPlaceModel  = true;

            ApiArAvailability arAvailability = ApiArAvailability.AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED;

            NativeSession.CheckApkAvailability(ref arAvailability);
            if (arAvailability == ApiArAvailability.AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED)
            {
                ApiArInstallStatus status = ApiArInstallStatus.AR_INSTALL_STATUS_INSTALL_REQUESTED;
                NativeSession.RequestInstall(1, ref status);
            }


            NativeSession.CheckAuthorized(getAppId());
        }
Beispiel #3
0
    void Start()
    {
        SenseARInstance = null;
        axisInstance    = null;
        slamController  = null;
        permissionUtil  = GameObject.Find("Instantiate").GetComponent <AndroidPermissionUtil>();

        prevTouches  = new Touch[2];
        selectedObj_ = null;
        bPlaceModel  = true;

        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);
        }

        if (shotButton)
        {
            shotButton.gameObject.SetActive(false);
        }


        ApiArStatus ret = NativeSession.CheckAuthorized(getAppId());
    }