赞
踩
/// 导入fbx时直接分解出AnimationClip /
- public static void OnPostprocessAllAssets(string[] importedAsset, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) {
-
- bool processed_flag = false;
-
- foreach (string asset_path in importedAsset) {
- string dir = Path.GetDirectoryName(asset_path);
- Object main_asset = AssetDatabase.LoadMainAssetAtPath(asset_path);
- if (main_asset.GetType() == typeof(GameObject) && Path.GetExtension(asset_path).ToLower() == ".fbx") {
- Object[] assets = AssetDatabase.LoadAllAssetsAtPath(asset_path);
- List<Object> animation_clip_list = new List<Object>();
- foreach (Object asset in assets)
- {
- if (asset.GetType() == typeof(AnimationClip))
- {
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。