void OnEnable() { #if UNITY_STANDALONE_WIN AlembicImporter.AddLibraryPath(); #endif m_abc = AlembicImporter.aiCreateContext(); m_loaded = AlembicImporter.aiLoad(m_abc, m_path_to_abc); }
void Update() { if (!m_loaded) { m_loaded = AlembicImporter.aiLoad(m_abc, Application.streamingAssetsPath + "/" + m_path_to_abc); } if (m_loaded) { m_time += Time.deltaTime; if (Math.Abs(m_time - m_time_prev) > m_time_eps) { AlembicImporter.UpdateAbcTree(m_abc, GetComponent <Transform>(), m_reverse_x, m_reverse_faces, AdjustTime(m_time)); m_time_prev = m_time; } } }