PolyToolkit.PolyImportOptions

Options that indicate how to import a given asset.

Summary

Public types

RescalingMode enum

Public attributes

clientThrottledMainThread
bool
If true, do not immediately perform heavy main thread operations (mesh import, texture creation, etc) on import.
desiredSize
float
The desired size of the bounding cube, if scaleMode==FIT.
recenter
bool
If true, recenters this object such that the center of its bounding box coincides with the center of the resulting GameObject (recommended).
rescalingMode
RescalingMode
What type of rescaling to perform.
scaleFactor
float
Scale factor to apply (in addition to unit conversion).

Public static functions

Default()
Returns a default set of import options.

Public functions

ToString()
override string

Public types

RescalingMode

 PolyToolkit::PolyImportOptions::RescalingMode

Public attributes

clientThrottledMainThread

bool PolyToolkit::PolyImportOptions::clientThrottledMainThread

If true, do not immediately perform heavy main thread operations (mesh import, texture creation, etc) on import.

Rather, an enumerator will be returned (mainThreadThrottler) in PolyImportResult which you can enumerate to gradually create meshes and perform other heavy UI thread operations. This option is useful for performance-sensitive applications that want to be in full control of when Unity objects are created on the main thread.

desiredSize

float PolyToolkit::PolyImportOptions::desiredSize

The desired size of the bounding cube, if scaleMode==FIT.

recenter

bool PolyToolkit::PolyImportOptions::recenter

If true, recenters this object such that the center of its bounding box coincides with the center of the resulting GameObject (recommended).

rescalingMode

RescalingMode PolyToolkit::PolyImportOptions::rescalingMode

What type of rescaling to perform.

scaleFactor

float PolyToolkit::PolyImportOptions::scaleFactor

Scale factor to apply (in addition to unit conversion).

Only relevant if rescalingMode==CONVERT.

Public static functions

Default

PolyImportOptions PolyToolkit::PolyImportOptions::Default()

Returns a default set of import options.

Public functions

ToString

override string PolyToolkit::PolyImportOptions::ToString()