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
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
Is localization still initializing?
Declaration
public bool IsWaitingForLocalizationToBeReady { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 |