| | |
| | | EditorUtility.SetDirty(newVersionConfig); |
| | | |
| | | SetIconAndSplashImage(versionName); |
| | | SetCreateRoleAnimation(); |
| | | |
| | | PlayerSettings.companyName = "TheSecondWorld"; |
| | | PlayerSettings.productName = newVersionConfig.productName; |
| | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | } |