AsImpL 1.0
Asynchronous Importer and run-time Loader for Unity
AsImpL.MultiObjectImporter Class Reference

Load the objects in the given list with their parameters and positions. More...

Inheritance diagram for AsImpL.MultiObjectImporter:
AsImpL.ObjectImporter

Public Member Functions

void ImportModelListAsync (ModelImportInfo[] modelsInfo)
 Load a set of files with their own import options More...
 
- Public Member Functions inherited from AsImpL.ObjectImporter
void ImportModelAsync (string objName, string filePath, Transform parentObj, ImportOptions options)
 Request to load a file asynchronously. More...
 
virtual void UpdateStatus ()
 Update the loading/importing status More...
 

Public Attributes

bool autoLoadOnStart = false
 
List< ModelImportInfoobjectsList = new List<ModelImportInfo>()
 
ImportOptions defaultImportOptions = new ImportOptions()
 

Protected Member Functions

virtual void Start ()
 Import the list of objects in objectList. More...
 
- Protected Member Functions inherited from AsImpL.ObjectImporter
virtual void Update ()
 
virtual void OnImportingComplete ()
 Called when finished importing. More...
 
virtual void OnModelCreated (GameObject obj, string absolutePath)
 Called when each model has been created and before it is imported. More...
 
virtual void OnImported (GameObject obj, string absolutePath)
 Called when each model has been imported. More...
 
virtual void OnImportError (string absolutePath)
 Called when a model import fails. More...
 

Properties

string? RootPath [get]
 
- Properties inherited from AsImpL.ObjectImporter
int NumImportRequests [get]
 Number of pending import activities. More...
 

Additional Inherited Members

- Protected Attributes inherited from AsImpL.ObjectImporter
int numTotalImports = 0
 
bool allLoaded = false
 
ImportOptions buildOptions
 
List< LoaderloaderList
 
- Events inherited from AsImpL.ObjectImporter
Action ImportingStart
 Event triggered when starting to import. More...
 
Action ImportingComplete
 Event triggered when finished importing. More...
 
Action< GameObject, string > CreatedModel
 Event triggered when a single model has been created and before it is imported. More...
 
Action< GameObject, string > ImportedModel
 Event triggered when a single model has been successfully imported. More...
 
Action< string > ImportError
 Event triggered when an error occurred importing a model. More...
 

Detailed Description

Load the objects in the given list with their parameters and positions.

Member Function Documentation

◆ ImportModelListAsync()

void AsImpL.MultiObjectImporter.ImportModelListAsync ( ModelImportInfo[]  modelsInfo)

Load a set of files with their own import options

Parameters
modelsInfoList of file import entries

◆ Start()

virtual void AsImpL.MultiObjectImporter.Start ( )
protectedvirtual

Import the list of objects in objectList.

Member Data Documentation

◆ autoLoadOnStart

bool AsImpL.MultiObjectImporter.autoLoadOnStart = false

◆ defaultImportOptions

ImportOptions AsImpL.MultiObjectImporter.defaultImportOptions = new ImportOptions()

◆ objectsList

List<ModelImportInfo> AsImpL.MultiObjectImporter.objectsList = new List<ModelImportInfo>()

Property Documentation

◆ RootPath

string? AsImpL.MultiObjectImporter.RootPath
get

The documentation for this class was generated from the following file: