Component that imports objects from a model, both at run-rime and as assets in Editor.
More...
Component that imports objects from a model, both at run-rime and as assets in Editor.
◆ ImportModelAsync()
| void AsImpL.ObjectImporter.ImportModelAsync |
( |
string |
objName, |
|
|
string |
filePath, |
|
|
Transform |
parentObj, |
|
|
ImportOptions |
options |
|
) |
| |
Request to load a file asynchronously.
- Parameters
-
| objName | |
| filePath | |
| parentObj | |
| options | |
◆ OnImported()
| virtual void AsImpL.ObjectImporter.OnImported |
( |
GameObject |
obj, |
|
|
string |
absolutePath |
|
) |
| |
|
protectedvirtual |
Called when each model has been imported.
It triggers ImportedModel event, if it was set.
◆ OnImportError()
| virtual void AsImpL.ObjectImporter.OnImportError |
( |
string |
absolutePath | ) |
|
|
protectedvirtual |
Called when a model import fails.
It triggers ImportError event, if it was set.
◆ OnImportingComplete()
| virtual void AsImpL.ObjectImporter.OnImportingComplete |
( |
| ) |
|
|
protectedvirtual |
Called when finished importing.
It triggers ImportingComplete event, if it was set.
◆ OnModelCreated()
| virtual void AsImpL.ObjectImporter.OnModelCreated |
( |
GameObject |
obj, |
|
|
string |
absolutePath |
|
) |
| |
|
protectedvirtual |
Called when each model has been created and before it is imported.
It triggers CreatedModel event, if it was set.
◆ Update()
| virtual void AsImpL.ObjectImporter.Update |
( |
| ) |
|
|
protectedvirtual |
◆ UpdateStatus()
| virtual void AsImpL.ObjectImporter.UpdateStatus |
( |
| ) |
|
|
virtual |
Update the loading/importing status
◆ allLoaded
| bool AsImpL.ObjectImporter.allLoaded = false |
|
protected |
◆ buildOptions
◆ loaderList
| List<Loader> AsImpL.ObjectImporter.loaderList |
|
protected |
◆ numTotalImports
| int AsImpL.ObjectImporter.numTotalImports = 0 |
|
protected |
◆ NumImportRequests
| int AsImpL.ObjectImporter.NumImportRequests |
|
get |
Number of pending import activities.
◆ CreatedModel
| Action<GameObject, string> AsImpL.ObjectImporter.CreatedModel |
Event triggered when a single model has been created and before it is imported.
◆ ImportedModel
| Action<GameObject, string> AsImpL.ObjectImporter.ImportedModel |
Event triggered when a single model has been successfully imported.
◆ ImportError
| Action<string> AsImpL.ObjectImporter.ImportError |
Event triggered when an error occurred importing a model.
◆ ImportingComplete
| Action AsImpL.ObjectImporter.ImportingComplete |
Event triggered when finished importing.
◆ ImportingStart
| Action AsImpL.ObjectImporter.ImportingStart |
Event triggered when starting to import.
The documentation for this class was generated from the following file: