Если вам хочется например отключить генерацию материала при импорте модели, или установить размер модели по умолчанию равным 1, можно воспользоваться этим кодом.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class MyAssetPostprocessor : AssetPostprocessor

{

     void OnPreprocessModel()

     {
          ModelImporter modelImporter = assetImporter as ModelImporter;

          modelImporter.generateMaterials = 0;

          modelImporter.globalScale = 1;
     }

}

Скрипт положить в папку Editor.

VN:F [1.9.3_1094]
Rating: 7.8/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Настройки импорта моделей, 7.8 out of 10 based on 4 ratings

5 комментариев на «Настройки импорта моделей»

  1. SolMayers
    SolMayers пишет:

    Спасибо!

    VN:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  2. Guy

    lewisohn@dora.progandist” rel=”nofollow”>.…

    спс….

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  3. Randall

    calculators@navel.shakespeare” rel=”nofollow”>.…

    благодарствую….

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  4. frank

    supervened@helpfulness.pavlovsky” rel=”nofollow”>.…

    спасибо за инфу!…

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  5. Evan

    depression@protuberance.translations” rel=”nofollow”>.…

    спасибо за инфу!!…

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Ваш отзыв

Вы должны войти, чтобы оставлять комментарии.



Страница 1 of 0