Icon:
使用AssetDatabase.GetAssetPath(...)获取该asset相对于project floder的路径。
AssetDatabase.LoadAllAssetsAtPath(sprite路径),会获得1个sprite+1个texture2d
AssetDatabase.LoadAllAssetRepresentationAtPath(sprite路径),只会获取1个sprite
SelectionMode.TopLevel多用于获取sprite
Animation:
modelImporter.globalScale=1
modelImporter.animationCompression = keyframeReduction,官方推荐的动画压缩方式,需要设置modelImporter.animationPositionError( = 0.5), animationRotationError( = 0.5), animationScaleError( = 0.5)
modelImporter.importMaterials = false,纯动画文件的加载不需要材质
动画还有设置RootMotion,细节暂时不太清楚,可以参考 http://www.cnblogs.com/88999660/p/4716498.html