Class TutorialWelcomePage
Welcome page/dialog for a project shown using TutorialModalWindow.
Implements
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Assembly: Unity.Tutorials.Core.Editor.dll
Syntax
public class TutorialWelcomePage : ScriptableObject, ISerializationCallbackReceiver
Remarks
In addition of window title, header image, title, and description, a welcome page/dialog contains a fully customizable button row.
Fields
Modified
Raised when any field of the welcome page is modified.
Declaration
public TutorialWelcomePageEvent Modified
Field Value
Type | Description |
---|---|
Tutorial |
TutorialWelcomePageModified
Raised when any welcome page is modified.
Declaration
public static TutorialWelcomePageEvent TutorialWelcomePageModified
Field Value
Type | Description |
---|---|
Tutorial |
Remarks
Raised before Modified event.
Properties
Buttons
Buttons specified for the welcome page.
Declaration
public TutorialWelcomePage.ButtonData[] Buttons { get; set; }
Property Value
Type | Description |
---|---|
Button |
Description
Description of the welcome dialog.
Declaration
public LocalizableString Description { get; set; }
Property Value
Type | Description |
---|---|
Localizable |
HeaderContent
The Video Media settings used by the header if the media type is set to Video
Declaration
public MediaContent HeaderContent { get; set; }
Property Value
Type | Description |
---|---|
Media |
Image
Header image of the welcome dialog if the HeaderType is set to Image
Declaration
[Obsolete("This is deprecated and will be removed in a future version. Use HeaderContent with Type set to Image")]
public Texture2D Image { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
MaskEditor
Does this Welcome Dialog mask the rest of the editor when displayed
Declaration
public bool MaskEditor { get; set; }
Property Value
Type | Description |
---|---|
bool |
Title
Title of the welcome dialog.
Declaration
public LocalizableString Title { get; set; }
Property Value
Type | Description |
---|---|
Localizable |
WindowTitle
Window title of the welcome dialog.
Declaration
public LocalizableString WindowTitle { get; set; }
Property Value
Type | Description |
---|---|
Localizable |
Methods
CloseCurrentModalDialog()
Closes the an open instance of TutorialModalWindow.
Declaration
public void CloseCurrentModalDialog()
CreateCloseButton(TutorialWelcomePage)
Creates a default Close button.
Declaration
public static TutorialWelcomePage.ButtonData CreateCloseButton(TutorialWelcomePage page)
Parameters
Type | Name | Description |
---|---|---|
Tutorial |
page | Page for which the buttons is created. |
Returns
Type | Description |
---|---|
Tutorial |
Data structure for the button. |
ExitEditor()
Exits the Editor.
Declaration
public void ExitEditor()
OnAfterDeserialize()
Called just after the asset was deserialized to disk
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Called before the asset is serialized to disk
Declaration
public void OnBeforeSerialize()
RaiseModified()
Raises the Modified events for this asset.
Declaration
public void RaiseModified()