Advertisement

Unity编辑器 - 批处理工具基类

阅读量:

Unity编辑器 - 资源批处理工具基类

在实际操作中,资源的批量处理需求较为常见,且多数情况下为一次性任务,因此开发了一个通用脚本以应对此类情况。
该工具采用弹出式界面设计,并在处理过程中配备进度条以实时展示处理状态,具体界面如下:

批处理工具例子

如图所示,各个子类仅需对若干方法进行覆盖实现:

复制代码
    using UnityEngine;
    using BatchTool;
    using UnityEditor;
    
    public class TestBatchTool : BatchToolBase {
    
    [MenuItem("BatchTool/test")]
    static void test() {
        GetWindow<TestBatchTool>();
    }
    
    ModelImporterAnimationType animType;
    bool bImportMat;
    
    /// <summary>
    /// 初始化信息
    /// <

全部评论 (0)

还没有任何评论哟~