public void MeshImported(string objPath) { // Find the import behaviour that was waiting on this mesh to be imported string asset = System.IO.Path.GetFileName(objPath); ImportBehaviour importComponent = ImportBehaviour.FindImportBehavior_ByWaitingMesh(asset); if (importComponent != null) { // The mesh has finished loading. Keep track of that status. if (!importComponent.ImportComplete_Meshes.Contains(asset)) { importComponent.ImportComplete_Meshes.Add(asset); } // Are we done importing all meshes? If so then start importing prefabs. if (importComponent.IsMeshImportingCompleted()) { ImportAllPrefabs(importComponent, objPath); } } }