@@ -336,8 +336,8 @@ public static bool ExportAnimator(AssetItem item, string exportPath, List<AssetI
336
336
}
337
337
var m_Animator = ( Animator ) item . Asset ;
338
338
var convert = animationList != null
339
- ? new ModelConverter ( m_Animator , Properties . Settings . Default . convertType , Studio . Game , Properties . Settings . Default . collectAnimations , animationList . Select ( x => ( AnimationClip ) x . Asset ) . ToArray ( ) )
340
- : new ModelConverter ( m_Animator , Properties . Settings . Default . convertType , Studio . Game , Properties . Settings . Default . collectAnimations ) ;
339
+ ? new ModelConverter ( m_Animator , Properties . Settings . Default . convertType , Properties . Settings . Default . texs , Properties . Settings . Default . uvs , Studio . Game , Properties . Settings . Default . collectAnimations , animationList . Select ( x => ( AnimationClip ) x . Asset ) . ToArray ( ) )
340
+ : new ModelConverter ( m_Animator , Properties . Settings . Default . convertType , Properties . Settings . Default . texs , Properties . Settings . Default . uvs , Studio . Game , Properties . Settings . Default . collectAnimations ) ;
341
341
ExportFbx ( convert , exportFullPath ) ;
342
342
return true ;
343
343
}
@@ -352,8 +352,8 @@ public static bool ExportGameObject(AssetItem item, string exportPath, List <Ass
352
352
public static bool ExportGameObject ( GameObject gameObject , string exportPath , List < AssetItem > animationList = null )
353
353
{
354
354
var convert = animationList != null
355
- ? new ModelConverter ( gameObject , Properties . Settings . Default . convertType , Studio . Game , Properties . Settings . Default . collectAnimations , animationList . Select ( x => ( AnimationClip ) x . Asset ) . ToArray ( ) )
356
- : new ModelConverter ( gameObject , Properties . Settings . Default . convertType , Studio . Game , Properties . Settings . Default . collectAnimations ) ;
355
+ ? new ModelConverter ( gameObject , Properties . Settings . Default . convertType , Properties . Settings . Default . texs , Properties . Settings . Default . uvs , Studio . Game , Properties . Settings . Default . collectAnimations , animationList . Select ( x => ( AnimationClip ) x . Asset ) . ToArray ( ) )
356
+ : new ModelConverter ( gameObject , Properties . Settings . Default . convertType , Properties . Settings . Default . texs , Properties . Settings . Default . uvs , Studio . Game , Properties . Settings . Default . collectAnimations ) ;
357
357
358
358
if ( convert . MeshList . Count == 0 )
359
359
{
@@ -377,8 +377,6 @@ private static void ExportFbx(IImported convert, string exportPath)
377
377
exportBlendShape = Properties . Settings . Default . exportBlendShape ,
378
378
castToBone = Properties . Settings . Default . castToBone ,
379
379
boneSize = ( int ) Properties . Settings . Default . boneSize ,
380
- exportAllUvsAsDiffuseMaps = Properties . Settings . Default . exportAllUvsAsDiffuseMaps ,
381
- exportUV0UV1 = Properties . Settings . Default . exportUV0UV1 ,
382
380
scaleFactor = ( float ) Properties . Settings . Default . scaleFactor ,
383
381
fbxVersion = Properties . Settings . Default . fbxVersion ,
384
382
fbxFormat = Properties . Settings . Default . fbxFormat
0 commit comments