![]() |
PiXYZ Plugin for Unity
Scripting API Documentation
|
Public Member Functions | |
void | run () |
Public Attributes | |
ProgressedCallback | progressed |
ImportCompletedCallback | completed |
Properties | |
static ImportedModel | LatestModelImportedObject [get] |
static string | LatestModelImportedPath [get] |
string | filePath [get, set] |
bool | isAsynchronous [get, set] |
bool | printMessageOnCompletion [get, set] |
ImportSettings | importSettings [get, set] |
This class can be used in the editor as well as in runtime.
void run | ( | ) |
Starts importing the file.
Can be executed only once per Importer instance.
Freezing the ImportSettings, and eventually change some settings depending on context For example,
ImportCompletedCallback completed |
Callback function triggered when the importer has finished importing.
In Async mode, this callback is triggered only when everything is finished. Always occurs in the main thread.
ProgressedCallback progressed |
Callback function triggered everytime the importer has progressed.
Always occurs in the main thread.
|
getset |
The file to import
|
getset |
Returns the ImportSettings reference
|
getset |
[Default is True] If set to true, the import process will run as much as it can on different threads than the main one, so that it won't freeze the Editor/Application and performances are kept to the maximum.
In Asynchronous mode, it is recommended to use callback methods to get information on the import status.
|
staticget |
The GameObject reference to the latest imported model.
Returns null if no model was imported during this session.
|
staticget |
The file path to the latest imported model.
Returns null if no model was imported during this session.
|
getset |
[Default is True] If set to true, the importer will print a message in the console on import completion.