// Use this for initialization
        void Start()
        {
            unityARAnchorManager = new UnityARAnchorManager();
            UnityARUtility.InitializePlanePrefab(planePrefab);

            planeCount = 0;
        }
 // Use this for initialization
 void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     planesParent         = transform;
     UnityARUtility.InitializePlanePrefab(planePrefab);
     // UnityARUtility.InitializePlanesParent(planesParent);
 }
        // Use this for initialization
        void Start()
        {
            Debug.Log("Called UNITYARGENERATEPLANE.CS");
            allThePlanes         = new List <GameObject>();
            unityARAnchorManager = new UnityARAnchorManager();
            UnityARUtility.InitializePlanePrefab(planePrefab);


            planeCollider = planePrefab.GetComponent <Collider>();
            planeCenter   = planeCollider.bounds.center;

            whateverCube = GameObject.CreatePrimitive(PrimitiveType.Cube);

            whateverCube.transform.parent   = planePrefab.transform;
            whateverCube.transform.position = planeCenter;

            allThePlanes.Add(planePrefab);

            Debug.Log("planes detected are: " + allThePlanes.Count);

            //translate to AR world scale (10%)
            //move .05 units up so that the cube sits on the plane
            whateverCube.transform.localScale = new Vector3(.1f, .1f, .1f);
            whateverCube.transform.position   = new Vector3(0, .05f, 0);
            //whateverCube.transform.localScale = new Vector3(planeCenter.x * 0.1f ,planeCenter.y * 0.1f ,planeCenter.z * 0.1f );

            //   GameObject go = Instantiate(whateverCube,planeCenter,Quaternion.identity);
        }
 // Use this for initialization
 void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     //  ManagerScript.instance.AddPlaneRenderer(planePrefab);
     //Debug.LogWarning("UnityARGeneratePlane");
     ManagerScript.instance.AssignARPrefab(planePrefab);
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
 // Use this for initialization
 void Start()
 {
     if (Hit == false)
     {
         unityARAnchorManager = new UnityARAnchorManager();
         UnityARUtility.InitializePlanePrefab(planePrefab);
         Hit = true;
     }
 }
        // Use this for initialization
        void Start()
        {
            unityARAnchorManager = new UnityARAnchorManager();
            UnityARUtility.InitializePlanePrefab(planePrefab);

            Button btn = freezeSun.GetComponent <Button>();

            btn.onClick.AddListener(TaskOnClick);
        }
Example #7
0
        public void initStart()
        {
            analytic.time_startFindPlane = Time.time;
            planePrefab.SetActive(true);
            UnityARHitTestExample hitScript = hitParent.GetComponentInChildren <UnityARHitTestExample>();

            unityARAnchorManager = new UnityARAnchorManager(this, hitParent, hitScript, Camera_managerScrpt);
            UnityARUtility.InitializePlanePrefab(planePrefab);
        }
        private void OnDisable()
        {
            UnityARUtility.InitializePlanePrefab(null);
            int cl = transform.childCount;

            for (int i = 0; i < cl; i++)
            {
                transform.GetChild(i).gameObject.SetActive(false);
            }
        }
Example #9
0
 //public static float height_y;
 //public static Bounds bound;
 //public static Bounds bound2;//使用一个平面还是两个?如果两个的话,启用bound2
 // Use this for initialization
 void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
     // bound2 = new Bounds(new Vector3(0, 0, 0), new Vector3(0, 0, 0));
 }
 public void NewSession()
 {
     unityARAnchorManager.Destroy();
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
 public void ShowPlanes()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
     mainCamera.cullingMask = -1;
 }
 // Use this for initialization
 void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab, transform);
 }
Example #13
0
 private void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
 // Use this for initialization
 void Start()
 {
     Debug.Log("I am a generate plane and I am being created!");
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
Example #15
0
 private void CreateARAnchor(Anywhere.Notification _notif)
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
Example #16
0
 // Use this for initialization
 void Start()
 {
     //UIPanels.Instance.configScreens.SetState (ConfigScreens.states.CONFIG_AREA);
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
 }
 // Use this for initialization
 void Start()
 {
     unityARAnchorManager = new UnityARAnchorManager();
     UnityARUtility.InitializePlanePrefab(planePrefab);
     planePrefab.tag = "plane";
 }