private UFLT.Records.Database LoadFlt(string fltFile) { UFLT.Records.Database db = new UFLT.Records.Database(fltFile, null, this.importSettings); db.MaterialBank = this.materialBank; db.ExternalReferencesBank = this.externalReferencesBank; db.Parse(); db.PrepareForImport(); return(db); }
private GameObject LoadFltToGameObject(string fltFile) { UFLT.Records.Database db = new UFLT.Records.Database(fltFile, null, this.importSettings); db.MaterialBank = this.materialBank; db.ExternalReferencesBank = this.externalReferencesBank; db.Parse(); db.PrepareForImport(); db.ImportIntoScene(); db.UnityGameObject.transform.parent = ParentTransform; //Debug.Log(db.Log.ToString()); return(db.UnityGameObject); }