Class ShareWindow
An Editor window that allows the user to share a WebGL build of the project to Unity Connect
Inherited Members
Namespace: Unity.Connect.Share.Editor
Syntax
public class ShareWindow : EditorWindow
Fields
TAB_ERROR
Name of the tab displayed when an error occurs
Declaration
public const string TAB_ERROR = "Error"
Field Value
Type | Description |
---|---|
String |
TAB_INSTALL_WEBGL
Name of the tab displayed when WebGL module is not installed
Declaration
public const string TAB_INSTALL_WEBGL = "InstallWebGl"
Field Value
Type | Description |
---|---|
String |
TAB_INTRODUCTION
Name of the tab displayed to a first time user
Declaration
public const string TAB_INTRODUCTION = "Introduction"
Field Value
Type | Description |
---|---|
String |
TAB_NO_BUILD
Name of the tab displayed when no build is available
Declaration
public const string TAB_NO_BUILD = "NoBuild"
Field Value
Type | Description |
---|---|
String |
TAB_NOT_LOGGED_IN
Name of the tab dsplayed when the user is not logged in
Declaration
public const string TAB_NOT_LOGGED_IN = "NotLoggedIn"
Field Value
Type | Description |
---|---|
String |
TAB_PROCESSING
Name of the tab displayed while processing a build
Declaration
public const string TAB_PROCESSING = "Processing"
Field Value
Type | Description |
---|---|
String |
TAB_SUCCESS
Name of the tab displayed when a build is successfully published
Declaration
public const string TAB_SUCCESS = "Success"
Field Value
Type | Description |
---|---|
String |
TAB_UPLOAD
Name of the tab from which builds can be uploaded
Declaration
public const string TAB_UPLOAD = "Upload"
Field Value
Type | Description |
---|---|
String |
TAB_UPLOADING
Name of the tab displayed while uploading a build
Declaration
public const string TAB_UPLOADING = "Uploading"
Field Value
Type | Description |
---|---|
String |
Properties
currentTab
The active tab in the UI
Declaration
public string currentTab { get; }
Property Value
Type | Description |
---|---|
String |
Store
A representation of the AppState
Declaration
public Store<AppState> Store { get; }
Property Value
Type | Description |
---|---|
Store<AppState> |
Methods
FindInstance()
Finds the first open instance of ShareWindow, if any.
Declaration
public static ShareWindow FindInstance()
Returns
Type | Description |
---|---|
ShareWindow |
LoadUXML(String)
Loads a VisualTreeAsset from an UXML file
Declaration
public static VisualTreeAsset LoadUXML(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | name of the file in the UI folder of the package |
Returns
Type | Description |
---|---|
VisualTreeAsset | The VisualTreeAsset representing the content of the file |
OnWebGLBuildTargetSet()
Called when the WebGL target platform is already selected or when the user switches to it through the Publisher
Declaration
public void OnWebGLBuildTargetSet()
OpenShareWindow()
Opens the Publisher's window
Declaration
[MenuItem("Publish/WebGL Project")]
public static ShareWindow OpenShareWindow()
Returns
Type | Description |
---|---|
ShareWindow |