private string GetFriendlyAvatarFileName(string type) { return("Avatar - " + blueprintName.text + " - " + type + " - " + Application.unityVersion + "_" + ApiWorld.VERSION.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + "_" + ApiModel.GetServerEnvironmentForApiUrl()); }
private string GetFriendlyWorldFileName(string type) { return("World - " + blueprintName.text + " - " + type + " - " + Application.unityVersion + "_" + ApiWorld.VERSION.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + (IsUsingDevAPI() ? "_dev" : "_release")); }
protected void PreparePluginPathForS3(string pluginPath, string blueprintId, int version, AssetVersion assetVersion) { uploadPluginPath = Application.temporaryCachePath + "/" + blueprintId + "_" + version.ToString() + "_" + Application.unityVersion + "_" + assetVersion.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + "_" + ApiModel.GetServerEnvironmentForApiUrl() + ".dll"; uploadPluginPath.Trim(); uploadPluginPath.Replace(' ', '_'); if (System.IO.File.Exists(uploadPluginPath)) { System.IO.File.Delete(uploadPluginPath); } System.IO.File.Copy(pluginPath, uploadPluginPath); }
protected void PrepareVRCPathForS3(string abPath, string blueprintId, int version, AssetVersion assetVersion) { uploadVrcPath = Application.temporaryCachePath + "/" + blueprintId + "_" + version.ToString() + "_" + Application.unityVersion + "_" + assetVersion.ApiVersion + "_" + ApiModel.GetAssetPlatformString() + (IsUsingDevAPI() ? "_dev" : "_release") + System.IO.Path.GetExtension(abPath); uploadVrcPath.Trim(); uploadVrcPath.Replace(' ', '_'); if (System.IO.File.Exists(uploadVrcPath)) { System.IO.File.Delete(uploadVrcPath); } System.IO.File.Copy(abPath, uploadVrcPath); }