PublisherWindowBase
public abstract class PublisherWindowBase : EditorWindowNamespace NodeWorld.SDK.Editor.
Base of the World and Avatar Publisher windows: tabs, a settings asset saved when it changes, output folder and platform fields, messages.
Properties
HasUnsavedSettings
protected bool HasUnsavedSettings { get; }The settings changed since they were saved.
SelectedTab
protected int SelectedTab { get; }Index of the tab shown.
SettingsAsset
protected abstract UnityEngine.Object SettingsAsset { get; }The asset holding the window's settings.
TabLabels
protected abstract string[] TabLabels { get; }Names of the tabs.
Methods
DrawHeader
protected abstract void DrawHeader()Draws the top of the window, above the tabs.
DrawSelectedTab
protected abstract void DrawSelectedTab()Draws the tab shown.
SaveSettingsAsset
protected abstract void SaveSettingsAsset()Saves the settings asset.
BeforeDraw
protected virtual void BeforeDraw()Called before the window draws.
DrawPublisherWindow
protected void DrawPublisherWindow()Draws the window: header, tabs, the tab shown, and saves the settings when they changed.
MarkSettingsDirty
protected void MarkSettingsDirty()Marks the settings as changed.
SaveSettingsAssetAndClearDirty
protected void SaveSettingsAssetAndClearDirty()Saves the settings and marks them saved.
SaveSettingsAssetIfDirty
protected void SaveSettingsAssetIfDirty()Saves the settings if they changed.
ClearSettingsDirty
protected void ClearSettingsDirty()Marks the settings as saved.
DrawOutputDirectory
protected static string DrawOutputDirectory(string outputDirectory)The output folder field with its Browse button; returns the folder.
DrawTargetPlatformToggles
protected static void DrawTargetPlatformToggles(ref bool buildWindows, ref bool buildLinux, ref bool buildAndroid)The Windows, Linux and Android checkboxes.
DrawMessages
protected static void DrawMessages(string title, List<string> messages, MessageType type)A list of messages under a title, in a box of type.
ShowBuildCompletedDialog
protected static void ShowBuildCompletedDialog(string title, bool success, string successMessage, string failureMessage)The dialog shown when a build ends.
DrawMipmapStreamingFix
protected void DrawMipmapStreamingFix(MipmapStreamingValidator.Report report, System.Action validateAgain, string contextLabel, MessageType issueType)The list of textures to fix for mipmap streaming, with a button that fixes them.
DrawMipmapStreamingValidation
protected void DrawMipmapStreamingValidation(MipmapStreamingValidator.Report report, System.Action validateNow, string contextLabel, MessageType issueType)The mipmap streaming check: its result and the button to run it again.
