Exemple #1
0
        private IEnumerator Load(string path)
        {
            Debug.LogFormat("load: {0}", path);

            if (m_loaded != null)
            {
                m_loaded.Dispose();
            }

            var loader = new VCIImporter();

            loader.Parse(path);
            yield return(loader.LoadCoroutine());

            yield return(loader.SetupCoroutine());

            loader.ShowMeshes();

            m_loaded = loader;
        }