Measurement Units

De TriLib
Ir para navegação Ir para pesquisar

3D authoring software has its own measurement units. TriLib has some options to convert between these units and Unity units.

*By default, 1 Unity unit is 1 Meter.

To keep the original measurement unit used when exporting your models, make sure your AssetLoaderOptions instance UseFileScale field is set to true .This way, TriLib will try to use the measurement unit used when your model has been exported.

If the default Unity measurement units is unsuitable, you can multiply the scale with any factor using the AssetLoaderOptions.ScaleFactor field. By default, this value is 1.0, which keeps the original measurement unit used when exporting your model.

*Only FBX and DAE files have options to export the measurement unit used when authoring the models. TriLib keeps the original units when loading models created in any other file format.