/// <summary> /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. /// </summary> public void Start() { m_meshSavePath = Application.persistentDataPath + "/meshes"; Directory.CreateDirectory(m_meshSavePath); m_arPoseController = FindObjectOfType <TangoARPoseController>(); m_tangoDynamicMesh = FindObjectOfType <TangoDynamicMesh>(); m_areaDescriptionLoaderPanel.SetActive(true); m_meshBuildPanel.SetActive(false); m_meshInteractionPanel.SetActive(false); m_relocalizeImage.gameObject.SetActive(false); // Initialize tango application. m_tangoApplication = FindObjectOfType <TangoApplication>(); if (m_tangoApplication != null) { m_tangoApplication.Register(this); if (AndroidHelper.IsTangoCorePresent()) { m_tangoApplication.RequestPermissions(); } m_bloonController.Init(m_tangoApplication); m_bloonController.SetOnBalloonAddedListener((marker) => { Debug.Log("added ballon ctrl"); // m_markerList.Add(marker); }); m_bloonController.SetOnBalloonPoppedListener((marker) => { Debug.Log("popped ballon ctrl"); // m_markerList.Remove(marker); }); } }
void Start() { uiElemets = GameObject.FindGameObjectsWithTag("dynamic_UI"); setMindMapReferenceColor(0); markers = new List <GameObject> (); m_dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); m_pointCloud = FindObjectOfType <TangoPointCloud>(); }
void Start() { _ClearButton.onClick.AddListener(OnClearClick); _PauseResumeButton.onClick.AddListener(OnPauseResumeClick); _pauseResumeText = _PauseResumeButton.transform.GetChild(0).GetComponent <Text>(); _tangoApplication = FindObjectOfType <TangoApplication>(); _dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); }
/// <summary> /// Start is used to initialize. /// </summary> public void Start() { m_tangoApplication = FindObjectOfType <TangoApplication>(); m_dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); m_exporter = new Exporter(); m_tangoCamera = FindObjectOfType <TangoMultiCamera>(); m_poseController = FindObjectOfType <TangoDeltaPoseController>(); LineRenderer lineRenderer = gameObject.AddComponent <LineRenderer>(); Material lineMat = Resources.Load("Line", typeof(Material)) as Material; lineRenderer.material = lineMat; lineRenderer.SetWidth(0.01F, 0.01F); lineRenderer.SetVertexCount(2); lineRenderer.SetPosition(0, measurePointStart.transform.position); lineRenderer.SetPosition(1, measurePointEnd.transform.position); }
/// <summary> /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. /// </summary> public void Start() { m_adfMeshSavePath = Application.persistentDataPath + "/ADFMeshes"; m_arPoseController = FindObjectOfType <TangoARPoseController>(); m_tangoDynamicMesh = FindObjectOfType <TangoDynamicMesh>(); m_areaDescriptionLoaderPanel.SetActive(true); m_meshBuildPanel.SetActive(false); m_meshInteractionPanel.SetActive(false); m_relocalizeImage.gameObject.SetActive(false); // Initialize tango application. m_tangoApplication = FindObjectOfType <TangoApplication>(); if (m_tangoApplication != null) { m_tangoApplication.Register(this); if (AndroidHelper.IsTangoCorePresent()) { m_tangoApplication.RequestPermissions(); } } }
/// <summary> /// Start is used to initialize. /// </summary> public void Start() { m_tangoApplication = FindObjectOfType <TangoApplication>(); m_dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); m_dynamicMesh.m_enableSelectiveMeshing = m_enableSelectiveMeshing; }
public void Start() { StartIndex = 0; m_dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); }
/// <summary> /// Start is used to initialize. /// </summary> public void Start() { m_tangoApplication = FindObjectOfType <TangoApplication>(); m_dynamicMesh = FindObjectOfType <TangoDynamicMesh>(); }
/// <summary> /// Start is used to initialize. /// </summary> public void Start() { m_tangoApplication = FindObjectOfType<TangoApplication>(); m_dynamicMesh = FindObjectOfType<TangoDynamicMesh>(); }
/// <summary> /// Start is used to initialize. /// </summary> public void Start() { m_tangoApplication = FindObjectOfType<TangoApplication>(); m_dynamicMesh = FindObjectOfType<TangoDynamicMesh>(); m_dynamicMesh.m_enableSelectiveMeshing = m_enableSelectiveMeshing; }
/// <summary> /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. /// </summary> public void Start() { m_meshSavePath = Application.persistentDataPath + "/meshes"; Directory.CreateDirectory(m_meshSavePath); m_arPoseController = FindObjectOfType<TangoARPoseController>(); m_tangoDynamicMesh = FindObjectOfType<TangoDynamicMesh>(); m_areaDescriptionLoaderPanel.SetActive(true); m_meshBuildPanel.SetActive(false); m_meshInteractionPanel.SetActive(false); m_relocalizeImage.gameObject.SetActive(false); // Initialize tango application. m_tangoApplication = FindObjectOfType<TangoApplication>(); if (m_tangoApplication != null) { m_tangoApplication.Register(this); if (AndroidHelper.IsTangoCorePresent()) { m_tangoApplication.RequestPermissions(); } } }