コード例 #1
0
    //-------------------------------------------------------------------------
    void _startCurrentBuild()
    {
        if (QueueNeedBuildPlatform.Count > 0)
        {
            mCurrentBuildTargetPlatform = QueueNeedBuildPlatform.Dequeue().BuildTarget;
            _getCurrentTargetPath();
            string target_path = CurrentBuildProjectPlatformInfo.PlatformTargetRootPath + CurrentBuildProjectPlatformInfo.DataVersion;
            if (!Directory.Exists(target_path))
            {
                Directory.CreateDirectory(target_path);
            }

            if (mIsPackSelectItem)
            {
                _packAssetBundleCompressSelect();
            }
            else
            {
                _packAssetBundleCompressAll(target_path);
            }

            _packResources(target_path);
        }
        else
        {
            ShowNotification(new GUIContent("打包完成!"));

            EditorUserBuildSettings.SwitchActiveBuildTarget(mInitBuildTargetGroupPlatform, mInitBuildTargetPlatform);
        }
    }
コード例 #2
0
    //-------------------------------------------------------------------------
    void _startBuild()
    {
        foreach (var i in ListNeedBuildPlatform)
        {
            QueueNeedBuildPlatform.Enqueue(i);
        }

        _startCurrentBuild();
    }
コード例 #3
0
    //-------------------------------------------------------------------------
    void _startCurrentBuild()
    {
        if (QueueNeedBuildPlatform.Count > 0)
        {
            mCurrentBuildTargetPlatform = QueueNeedBuildPlatform.Dequeue().BuildTarget;
            _getCurrentTargetPath();
            _packAssetBundleCompress();
        }
        else
        {
            ShowNotification(new GUIContent("打包完成!"));

            EditorUserBuildSettings.SwitchActiveBuildTarget(mInitBuildTargetPlatform);
            //changeAssetBundleResourcePath();
            //changeRowResourcePath();
        }
    }