Class PublisherWindow
Represents an editor window that allows the user to publish a WebGL build of the project to Unity Play
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 = null
Field Value
Type | Description |
---|---|
String |
TabInstallWebGL
Name of the tab displayed when WebGL module is not installed
Declaration
public const string TabInstallWebGL = null
Field Value
Type | Description |
---|---|
String |
TabIntroduction
Name of the tab displayed to a first time user
Declaration
public const string TabIntroduction = null
Field Value
Type | Description |
---|---|
String |
TabNoBuild
Name of the tab displayed when no build is available
Declaration
public const string TabNoBuild = null
Field Value
Type | Description |
---|---|
String |
TabNotLoggedIn
Name of the tab dsplayed when the user is not logged in
Declaration
public const string TabNotLoggedIn = null
Field Value
Type | Description |
---|---|
String |
TabProcessing
Name of the tab displayed while processing a build
Declaration
public const string TabProcessing = null
Field Value
Type | Description |
---|---|
String |
TabSuccess
Name of the tab displayed when a build is successfully published
Declaration
public const string TabSuccess = null
Field Value
Type | Description |
---|---|
String |
TabUpload
Name of the tab from which builds can be uploaded
Declaration
public const string TabUpload = null
Field Value
Type | Description |
---|---|
String |
TabUploading
Name of the tab displayed while uploading a build
Declaration
public const string TabUploading = null
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
public static PublisherWindow OpenWindow()
Returns
Type | Description |
---|---|
PublisherWindow |