Ejemplo n.º 1
0
    private void LoadFileFromDisk()
    {
        // Import and convert our model
        var data = RuntimeConverter.ConvertToPointCloudData(_localPath);

        _renderer.sourceData = data;
    }
Ejemplo n.º 2
0
    private void LoadFileFromUrl()
    {
        StartCoroutine(DownloadService.DownloadFileAsync(_url,
                                                         progress =>
        {
            _progressBar.value = progress;
        }, (path) =>
        {
            // Import and convert our model
            var data             = RuntimeConverter.ConvertToPointCloudData(path);
            _renderer.sourceData = data;

            _progressBar.gameObject.SetActive(false);
        }));
    }