This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
namespace AdrianMiasik.Editor | |
{ | |
public class CloudBuildRenamer : EditorWindow | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False"> | |
<ui:TextField picking-mode="Ignore" label="Unity Cloud Builds Directory: " name="unity-cloud-build-dir" style="visibility: visible;"> | |
<ui:Button text="Browse..." display-tooltip-when-elided="true" name="browse-button" style="white-space: nowrap;" /> | |
</ui:TextField> | |
<ui:Button text="Rename Builds" display-tooltip-when-elided="true" name="rename-button" style="left: auto; -unity-text-align: middle-center; white-space: nowrap;" /> | |
</ui:UXML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Restarts our Android application and re-opens the process. | |
/// </summary> | |
private static void RestartAndroidProcess() | |
{ | |
using AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
const int kIntent_FLAG_ACTIVITY_CLEAR_TASK = 0x00008000; | |
const int kIntent_FLAG_ACTIVITY_NEW_TASK = 0x10000000; |