您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
568 B
27 行
568 B
using System;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using UnityEditor.Build;
|
|
using UnityEditor.Build.Reporting;
|
|
|
|
namespace Unity.DemoTeam.DigitalHuman
|
|
{
|
|
public class SkinDeformationClipBuildProcessor : IPreprocessBuildWithReport
|
|
{
|
|
public int callbackOrder
|
|
{
|
|
get { return 0; }
|
|
}
|
|
|
|
public void OnPreprocessBuild(BuildReport report)
|
|
{
|
|
var clips = Resources.FindObjectsOfTypeAll<SkinDeformationClip>();
|
|
foreach (var clip in clips)
|
|
{
|
|
clip.CopyToStreamingAssets();
|
|
EditorUtility.SetDirty(clip);
|
|
}
|
|
AssetDatabase.SaveAssets();
|
|
}
|
|
}
|
|
}
|