| | |
| | | EditorApplication.delayCall += ExcuteBuildAudio; |
| | | } |
| | | |
| | | if (GUILayout.Button("Video")) |
| | | { |
| | | EditorApplication.delayCall += ExcuteBuildVideo; |
| | | } |
| | | |
| | | if (GUILayout.Button("Levels")) |
| | | { |
| | | EditorApplication.delayCall += ExcuteBuildLevels; |
| | |
| | | if (GUILayout.Button("Make VersionFile")) |
| | | { |
| | | EditorApplication.delayCall += MakeAssetsVersionFile; |
| | | } |
| | | |
| | | if (GUILayout.Button("Copy to StreamingAssets")) |
| | | { |
| | | EditorApplication.delayCall += CopyToStreamingAssets; |
| | | } |
| | | |
| | | EditorGUILayout.EndHorizontal(); |
| | |
| | | EditorGUILayout.EndScrollView(); |
| | | } |
| | | |
| | | private void CopyToStreamingAssets() |
| | | { |
| | | if (Directory.Exists(m_streamingPath)) |
| | | Directory.Delete(m_streamingPath, true); |
| | | DirectoryCopy(m_UserData.m_OutputPath, m_streamingPath); |
| | | } |
| | | |
| | | private void ExecuteBuildAll() |
| | | { |
| | | |
| | |
| | | } |
| | | |
| | | ExcuteBuildAudio(); |
| | | ExcuteBuildVideo(); |
| | | ExcuteBuildMobEffectShader(); |
| | | ExcuteBuildConfig(); |
| | | ExcuteBuildLevels(); |
| | |
| | | } |
| | | } |
| | | |
| | | private void ExcuteBuildAsset(string _category) |
| | | private void ExcuteBuildAsset(string _category, bool uncompressed = false) |
| | | { |
| | | BuildAssetBundleOptions opt = BuildAssetBundleOptions.None; |
| | | if (AssetBundleModel.Model.DataSource.CanSpecifyBuildOptions) |
| | | { |
| | | if (m_UserData.m_Compression == CompressOptions.Uncompressed) |
| | | if (m_UserData.m_Compression == CompressOptions.Uncompressed || uncompressed) |
| | | { |
| | | opt |= BuildAssetBundleOptions.UncompressedAssetBundle; |
| | | } |
| | |
| | | { |
| | | UpdateAudioSetting.SetAllAudioAssetBundleName(); |
| | | ExcuteBuildAsset("audio"); |
| | | } |
| | | |
| | | private void ExcuteBuildVideo() |
| | | { |
| | | UpdateVideoSetting.SetAllVideoAssetBundleName(); |
| | | ExcuteBuildAsset("video"); |
| | | ExcuteBuildAsset("video",true); |
| | | } |
| | | |
| | | private void ExcuteBuildMobEffectShader() |