Exemplo n.º 1
0
    private static void AssetStoreLogout()
    {
        DebugUtils.Log("Logged out of Asset Store");
        AssetStoreManager assetStoreManager = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");

        assetStoreManager.Close();
        AssetStoreClient.Logout();
    }
Exemplo n.º 2
0
    private void ShowUploadSucessfull()
    {
        EditorUtility.DisplayDialog("Upload successful", "The package has been uploaded please visit the Publisher Administration to submit this version for review.", "Ok");
        this.ClearLocalState();
        DebugUtils.Log("Closing package manager after successful submission");
        AssetStoreManager assetStoreManager = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "AssetStoreMgr");

        assetStoreManager.Close();
    }
Exemplo n.º 3
0
    private static void OnLoggedIn(string errorMessage)
    {
        if (errorMessage != null)
        {
            if (!errorMessage.StartsWith("Cancelled"))
            {
                DebugUtils.LogError("Error logging in: " + errorMessage);
            }
            else
            {
                DebugUtils.Log("Closing package manager because login cancelled");
                AssetStoreManager assetStoreManager = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");
                assetStoreManager.Close();
            }
            return;
        }
        Console.WriteLine("Asset Store Upload Tool logged in. V4.0.7");
        AssetStoreManager assetStoreManager2 = (AssetStoreManager)EditorWindow.GetWindow(typeof(AssetStoreManager), false, "Package Upload");

        assetStoreManager2.Init();
        assetStoreManager2.Show();
    }