- Home /
Question by
souledgar · Jul 24, 2018 at 11:31 AM ·
upgrademodelimporter
alternatives to ModelImporter.fileScale missing in 2017 and up
So I'm upgrading a project from Unity 5.5 up to 2017 when I noticed that ModelImporter.fileScale property is missing. The game uses the fileScale property in the formula globalScale = 1/fileScale * intendedScale in order to ensure all files use the correct scale in an import helper function. How do I access this property now? The API has a helpful link "See FileScale" under the documentation for ModelImporter.useFileScale, however, it points to an empty page.
Comment
Answer by Bunny83 · Jul 24, 2018 at 01:22 PM
You should use ModelImporter.globalScale and maybe set ModelImporter.useFileScale to false so the scale inside the file doesn't matter