Class PublisherWindow | WebGL Publisher | 4.1.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class PublisherWindow

    Represents an editor window that allows the user to publish a WebGL build of the project to Unity Play

    Inheritance
    Object
    Object
    ScriptableObject
    EditorWindow
    PublisherWindow
    Inherited Members
    EditorWindow.BeginWindows()
    EditorWindow.EndWindows()
    EditorWindow.ShowNotification(GUIContent)
    EditorWindow.ShowNotification(GUIContent, Double)
    EditorWindow.RemoveNotification()
    UnityEditor.EditorWindow.ShowTab()
    EditorWindow.Focus()
    EditorWindow.ShowUtility()
    EditorWindow.ShowPopup()
    EditorWindow.ShowModalUtility()
    EditorWindow.ShowAsDropDown(Rect, Vector2)
    EditorWindow.Show()
    EditorWindow.Show(Boolean)
    EditorWindow.ShowAuxWindow()
    EditorWindow.ShowModal()
    EditorWindow.GetWindow(Type, Boolean, String, Boolean)
    EditorWindow.GetWindow(Type, Boolean, String)
    EditorWindow.GetWindow(Type, Boolean)
    EditorWindow.GetWindow(Type)
    EditorWindow.GetWindowWithRect(Type, Rect, Boolean, String)
    EditorWindow.GetWindowWithRect(Type, Rect, Boolean)
    EditorWindow.GetWindowWithRect(Type, Rect)
    UnityEditor.EditorWindow.GetWindow<T>()
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String)
    UnityEditor.EditorWindow.GetWindow<T>(System.String)
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Boolean, System.String, System.Boolean)
    UnityEditor.EditorWindow.GetWindow<T>(System.Type[])
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Type[])
    UnityEditor.EditorWindow.GetWindow<T>(System.String, System.Boolean, System.Type[])
    UnityEditor.EditorWindow.CreateWindow<T>(System.Type[])
    UnityEditor.EditorWindow.CreateWindow<T>(System.String, System.Type[])
    UnityEditor.EditorWindow.HasOpenInstances<T>()
    EditorWindow.FocusWindowIfItsOpen(Type)
    UnityEditor.EditorWindow.FocusWindowIfItsOpen<T>()
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String)
    UnityEditor.EditorWindow.GetWindowWithRect<T>(UnityEngine.Rect, System.Boolean, System.String, System.Boolean)
    EditorWindow.Close()
    EditorWindow.Repaint()
    EditorWindow.SendEvent(Event)
    EditorWindow.GetExtraPaneTypes()
    EditorWindow.rootVisualElement
    EditorWindow.wantsMouseMove
    EditorWindow.wantsMouseEnterLeaveWindow
    EditorWindow.autoRepaintOnSceneChange
    EditorWindow.maximized
    EditorWindow.focusedWindow
    EditorWindow.mouseOverWindow
    EditorWindow.minSize
    EditorWindow.maxSize
    EditorWindow.titleContent
    UnityEditor.EditorWindow.depthBufferBits
    EditorWindow.position
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Play.Publisher.Editor
    Syntax
    public class PublisherWindow : EditorWindow

    Fields

    TabError

    Name of the tab displayed when an error occurs

    Declaration
    public const string TabError = "Error"
    Field Value
    Type Description
    String

    TabInstallWebGL

    Name of the tab displayed when WebGL module is not installed

    Declaration
    public const string TabInstallWebGL = "InstallWebGl"
    Field Value
    Type Description
    String

    TabIntroduction

    Name of the tab displayed to a first time user

    Declaration
    public const string TabIntroduction = "Introduction"
    Field Value
    Type Description
    String

    TabNoBuild

    Name of the tab displayed when no build is available

    Declaration
    public const string TabNoBuild = "NoBuild"
    Field Value
    Type Description
    String

    TabNotLoggedIn

    Name of the tab dsplayed when the user is not logged in

    Declaration
    public const string TabNotLoggedIn = "NotLoggedIn"
    Field Value
    Type Description
    String

    TabProcessing

    Name of the tab displayed while processing a build

    Declaration
    public const string TabProcessing = "Processing"
    Field Value
    Type Description
    String

    TabSuccess

    Name of the tab displayed when a build is successfully published

    Declaration
    public const string TabSuccess = "Success"
    Field Value
    Type Description
    String

    TabUpload

    Name of the tab from which builds can be uploaded

    Declaration
    public const string TabUpload = "Upload"
    Field Value
    Type Description
    String

    TabUploading

    Name of the tab displayed while uploading a build

    Declaration
    public const string TabUploading = "Uploading"
    Field Value
    Type Description
    String

    Properties

    CurrentTab

    The active tab in the UI

    Declaration
    public string CurrentTab { get; }
    Property Value
    Type Description
    String

    IsWaitingForLocalizationToBeReady

    Returns true or false depending if localization is still initializing or not

    Declaration
    public bool IsWaitingForLocalizationToBeReady { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Dispatch(Object)

    Dispatches an action to the WebGL Publisher

    Declaration
    public object Dispatch(object action)
    Parameters
    Type Name Description
    Object action

    The action to dispatch

    Returns
    Type Description
    Object

    Returns an object affected by the action

    Examples
            class DispatchExample
        {
            void Start()
            {
                PublisherWindow publisherWindow = PublisherWindow.FindInstance();
                if (!publisherWindow) { return; }
                publisherWindow.Dispatch(new OnErrorAction { errorMsg = "Error: you're too awesome to proceed!" });
            }
        }

    FindInstance()

    Finds the first open instance of PublisherWindow, if any.

    Declaration
    public static PublisherWindow FindInstance()
    Returns
    Type Description
    PublisherWindow

    OpenWindow()

    Opens the Publisher window

    Declaration
    [MenuItem("Publish/WebGL Project")]
    public static PublisherWindow OpenWindow()
    Returns
    Type Description
    PublisherWindow
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023