NodeWorld

PublisherWindowBase

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public abstract class PublisherWindowBase : EditorWindow

Namespace 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

csharp
protected bool HasUnsavedSettings { get; }

The settings changed since they were saved.

SelectedTab

csharp
protected int SelectedTab { get; }

Index of the tab shown.

SettingsAsset

csharp
protected abstract UnityEngine.Object SettingsAsset { get; }

The asset holding the window's settings.

TabLabels

csharp
protected abstract string[] TabLabels { get; }

Names of the tabs.

Methods

DrawHeader

csharp
protected abstract void DrawHeader()

Draws the top of the window, above the tabs.

DrawSelectedTab

csharp
protected abstract void DrawSelectedTab()

Draws the tab shown.

SaveSettingsAsset

csharp
protected abstract void SaveSettingsAsset()

Saves the settings asset.

BeforeDraw

csharp
protected virtual void BeforeDraw()

Called before the window draws.

DrawPublisherWindow

csharp
protected void DrawPublisherWindow()

Draws the window: header, tabs, the tab shown, and saves the settings when they changed.

MarkSettingsDirty

csharp
protected void MarkSettingsDirty()

Marks the settings as changed.

SaveSettingsAssetAndClearDirty

csharp
protected void SaveSettingsAssetAndClearDirty()

Saves the settings and marks them saved.

SaveSettingsAssetIfDirty

csharp
protected void SaveSettingsAssetIfDirty()

Saves the settings if they changed.

ClearSettingsDirty

csharp
protected void ClearSettingsDirty()

Marks the settings as saved.

DrawOutputDirectory

csharp
protected static string DrawOutputDirectory(string outputDirectory)

The output folder field with its Browse button; returns the folder.

DrawTargetPlatformToggles

csharp
protected static void DrawTargetPlatformToggles(ref bool buildWindows, ref bool buildLinux, ref bool buildAndroid)

The Windows, Linux and Android checkboxes.

DrawMessages

csharp
protected static void DrawMessages(string title, List<string> messages, MessageType type)

A list of messages under a title, in a box of type.

ShowBuildCompletedDialog

csharp
protected static void ShowBuildCompletedDialog(string title, bool success, string successMessage, string failureMessage)

The dialog shown when a build ends.

DrawMipmapStreamingFix

csharp
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

csharp
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.