Exemplo n.º 1
0
 /// <summary>
 /// Call when reset or starting scene
 /// </summary>
 private void CreateOriginMarkerAtCameraPosition()
 {
     if (originMarker != null)
     {
         Destroy(originMarker.transform.parent.gameObject);
     }
     originMarker = OriginMarker.CreatePrefab(firstPersonCamera.transform, originMarkerPrefab, anchorWrapperTransform);
 }
Exemplo n.º 2
0
        void Start()
        {
            myObjectSelection = GetComponent <SoundMarkerSelection>();
            soundMarkers      = new List <SoundMarker>();
            myObjectSelection.selectionDelegate = this;

            canvasControl.canvasDelegate = this;
            originMarker = anchorWrapperTransform.GetComponentInChildren <OriginMarker>();

            arCoreDevice      = GameObject.Find("ARCore Device");
            firstPersonCamera = arCoreDevice.gameObject.transform.GetChild(0).GetComponent <Camera>();
            soundPlacement.SetCursorModelHidden(true);
        }
        void Start() {
            loadingOverlay.gameObject.SetActive(false);

            VoiceOver.main.setDelegate(this);
            GetComponent<ARCoreTracking>().setDelegate(this);
            GetComponent<FlicReceiver>().setDelegate(this);

            myObjectSelection = GetComponent<SoundMarkerSelection>();
            myObjectSelection.selectionDelegate = this;

            canvasControl.canvasDelegate = this;
            originMarker = anchorWrapperTransform.GetComponentInChildren<OriginMarker>();

            arCoreDevice = GameObject.Find("ARCore Device");
            firstPersonCamera = arCoreDevice.gameObject.transform.GetChild(0).GetComponent<Camera>();
            soundPlacement.SetCursorModelHidden(true);
        }
 /// <summary>
 /// Call when reset or starting scene
 /// </summary>
 private void CreateOriginMarkerAtCameraPosition() {
     if (originMarker != null) { Destroy(originMarker.transform.parent.gameObject); }
     if (originMarkerPrefab == null) { Debug.LogError("originMarkerPrefab is null. Not calling OriginMarker.CreatePrefab"); return; }
     originMarker = OriginMarker.CreatePrefab(firstPersonCamera.transform, originMarkerPrefab, anchorWrapperTransform);
 }