Class TutorialPage
A TutorialPage consists of TutorialParagraphs which define the content of the page.
Implements
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Assembly: Unity.Tutorials.Core.Editor.dll
Syntax
public class TutorialPage : ScriptableObject, ISerializationCallbackReceiver
Fields
CriteriaCompletionStateTested
Raised when any page's criteria are tested for completion.
Declaration
public static TutorialPageEvent CriteriaCompletionStateTested
Field Value
Type | Description |
---|---|
Tutorial |
CriteriaValidated
Raised when this page's criteria are tested for completion.
Declaration
[Tooltip("Raised when this page's criteria are tested for completion.")]
public TutorialPageEvent CriteriaValidated
Field Value
Type | Description |
---|---|
Tutorial |
DoneButton
The text shown on the next button on the last page.
Declaration
[Tooltip("The text shown on the Next button on the last page.")]
public LocalizableString DoneButton
Field Value
Type | Description |
---|---|
Localizable |
MaskingSettingsChanged
Raised when this page's masking settings are changed.
Declaration
[Tooltip("Raised when this page's masking settings are changed.")]
public TutorialPageEvent MaskingSettingsChanged
Field Value
Type | Description |
---|---|
Tutorial |
NextButton
The text shown on the Next button on all pages except the last page.
Declaration
[Header("Button Labels")]
[Tooltip("The text shown on the next button on all pages except the last page.")]
public LocalizableString NextButton
Field Value
Type | Description |
---|---|
Localizable |
NonMaskingSettingsChanged
Raised when this page's non-masking settings are changed.
Declaration
[Tooltip("Raised when this page's non-masking settings are changed.")]
public TutorialPageEvent NonMaskingSettingsChanged
Field Value
Type | Description |
---|---|
Tutorial |
Showing
Raised before this page is displayed (even when going back).
Declaration
[Header("Events")]
[Tooltip("Raised before this page is displayed (even when going back).")]
public TutorialPageEvent Showing
Field Value
Type | Description |
---|---|
Tutorial |
Shown
Raised after this page is displayed (even when going back).
Declaration
[Tooltip("Raised after this page is displayed (even when going back).")]
public TutorialPageEvent Shown
Field Value
Type | Description |
---|---|
Tutorial |
Staying
Raised while the user is staying on this tutorial page, every Editor frame.
Declaration
[Tooltip("Raised while the user is staying on this tutorial page, every Editor frame.")]
public TutorialPageEvent Staying
Field Value
Type | Description |
---|---|
Tutorial |
Title
Title of the page
Declaration
public LocalizableString Title
Field Value
Type | Description |
---|---|
Localizable |
TutorialPageMaskingSettingsChanged
Raised when any page's masking settings are changed.
Declaration
public static TutorialPageEvent TutorialPageMaskingSettingsChanged
Field Value
Type | Description |
---|---|
Tutorial |
TutorialPageNonMaskingSettingsChanged
Raised when any page's non-masking settings are changed.
Declaration
public static TutorialPageEvent TutorialPageNonMaskingSettingsChanged
Field Value
Type | Description |
---|---|
Tutorial |
Properties
AreAllCriteriaSatisfied
Are all criteria satisfied?
Declaration
public bool AreAllCriteriaSatisfied { get; }
Property Value
Type | Description |
---|---|
bool |
AutoAdvanceOnComplete
Should we auto-advance upon completion.
Declaration
public bool AutoAdvanceOnComplete { get; set; }
Property Value
Type | Description |
---|---|
bool |
HasMovedToNextPage
Are we moving to the next page?
Declaration
public bool HasMovedToNextPage { get; }
Property Value
Type | Description |
---|---|
bool |
Paragraphs
Paragraphs of this page.
Declaration
public TutorialParagraphCollection Paragraphs { get; }
Property Value
Type | Description |
---|---|
Tutorial |
Methods
HasCriteria()
Has the current page any completion criteria?
Declaration
public bool HasCriteria()
Returns
Type | Description |
---|---|
bool | True if the page have any completion criteria |
OnAfterDeserialize()
UnityEngine.ISerializationCallbackReceiver override, do not call.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
UnityEngine.ISerializationCallbackReceiver override, do not call.
Declaration
public void OnBeforeSerialize()
RaiseMaskingSettingsChanged()
Raises TutorialPageMaskingSettingsChanged event.
Declaration
public void RaiseMaskingSettingsChanged()
RaiseNonMaskingSettingsChanged()
Raises TutorialPageNonMaskingSettingsChanged event.
Declaration
public void RaiseNonMaskingSettingsChanged()