示例#1
0
        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);
        }
示例#2
0
        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);
        }