protected void PrepareUnityPackageForS3(string packagePath, string blueprintId, int version, AssetVersion assetVersion) { uploadUnityPackagePath = Application.temporaryCachePath + "/" + blueprintId + "_" + version.ToString() + "_" + Application.unityVersion + "_" + assetVersion.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + "_" + ApiModel.GetServerEnvironmentForApiUrl() + ".unitypackage"; uploadUnityPackagePath.Trim(); uploadUnityPackagePath.Replace(' ', '_'); if (System.IO.File.Exists(uploadUnityPackagePath)) { System.IO.File.Delete(uploadUnityPackagePath); } System.IO.File.Copy(packagePath, uploadUnityPackagePath); }
private string GetFriendlyAvatarFileName(string type) { return("Avatar - " + blueprintName.text + " - " + type + " - " + Application.unityVersion + "_" + ApiWorld.VERSION.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + "_" + ApiModel.GetServerEnvironmentForApiUrl()); }