少年修仙传客户端基础资源
client_Wu Xijin
2019-05-20 5683a4e9aafda0466c39d6843837ffd686c5fc9e
3623 跳过静帧动画卡顿。
2个文件已修改
1个文件已添加
2 文件已重命名
43 ■■■■■ 已修改文件
Assets/Editor/Tool/ClientPackage.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ClientPackage_Standalone.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Video.meta 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Video/CreateRoleMovie.mp4 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Video/CreateRoleMovie.mp4.meta 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ClientPackage.cs
@@ -508,6 +508,7 @@
            EditorUtility.SetDirty(newVersionConfig);
            SetIconAndSplashImage(versionName);
            SetCreateRoleAnimation();
            PlayerSettings.companyName = "TheSecondWorld";
            PlayerSettings.productName = newVersionConfig.productName;
@@ -587,6 +588,22 @@
        }
    }
    public static void SetCreateRoleAnimation()
    {
        var from = "Assets/Editor/Video/CreateRoleMovie.mp4";
        var to = "Assets/StreamingAssets/CreateRoleMovie.mp4";
        if (!Directory.Exists(Application.dataPath + "StreamingAssets"))
        {
            Directory.CreateDirectory(Application.dataPath + "StreamingAssets");
        }
        if (AssetDatabase.LoadAssetAtPath<UnityEngine.Video.VideoClip>(to) == null)
        {
            AssetDatabase.CopyAsset(from, to);
        }
    }
    static BuildTargetGroup GetBuildTarget()
    {
#if UNITY_ANDROID
Assets/Editor/Tool/ClientPackage_Standalone.cs
@@ -362,6 +362,7 @@
            EditorUtility.SetDirty(newVersionConfig);
            SetIconAndSplashImage(versionName);
            SetCreateRoleAnimation();
            PlayerSettings.companyName = "TheSecondWorld";
            PlayerSettings.productName = newVersionConfig.productName;
@@ -432,4 +433,20 @@
        PlayerSettings.SplashScreen.logos = new PlayerSettings.SplashScreenLogo[] { splashScreenLogo };
    }
    public static void SetCreateRoleAnimation()
    {
        var from = "Assets/Editor/Video/CreateRoleMovie.mp4";
        var to = "Assets/Resources/CreateRoleMovie.mp4";
        if (!Directory.Exists(Application.dataPath + "Resources"))
        {
            Directory.CreateDirectory(Application.dataPath + "Resources");
        }
        if (AssetDatabase.LoadAssetAtPath<UnityEngine.Video.VideoClip>(to) == null)
        {
            AssetDatabase.CopyAsset(from, to);
        }
    }
}
Assets/Editor/Video.meta
New file
@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 4deb7948e20b1b74f917b6efeb2f575a
folderAsset: yes
timeCreated: 1558320256
licenseType: Pro
DefaultImporter:
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Editor/Video/CreateRoleMovie.mp4
Binary files differ
Assets/Editor/Video/CreateRoleMovie.mp4.meta