Class ParagraphBase
Base class of all paragraphs in a Tutorial Page. Subclassed to implement specific paragraph types containing text, media, code, buttons, or whatever you need.
Inherited Members
Namespace: Unity.Tutorials.Editor.Paragraphs
Assembly: Unity.Tutorials.Editor.dll
Syntax
public abstract class ParagraphBase : ScriptableObject
Methods
CanMask()
Override to return true when inheriting from this class, if the Paragraph type can mask the editor. MaskSetting will be used for that paragraph type.
Declaration
public virtual bool CanMask()
Returns
| Type | Description |
|---|---|
| bool | If true, this paragraph provide MaskSettings to be applied. |
Criterias()
List of criteria to satisfy in order to complete the paragraph.
Declaration
public virtual TypedCriterionCollection Criterias()
Returns
| Type | Description |
|---|---|
| TypedCriterionCollection | The criteria list. |
GetDisplayRoot()
Creates the VisualElement representing the paragraph for usage in the Tutorials window. To customise how the Paragraph appears in the Inspector of its TutorialPage SO, use a custom PropertyDrawer.
Declaration
public virtual VisualElement GetDisplayRoot()
Returns
| Type | Description |
|---|---|
| VisualElement | The VisualElement that contains the paragraph. |
HasCriteria()
Whether the paragraph type has criterias that need to be satisfied to complete the instructions.
Declaration
public virtual bool HasCriteria()
Returns
| Type | Description |
|---|---|
| bool | If the paragraph has criterias at all. |
IsCompleted()
Returns whether the paragraph has been completed.
Declaration
public virtual bool IsCompleted()
Returns
| Type | Description |
|---|---|
| bool | The paragraph completion state. |
OnCriterionUpdated()
Callback that fires when one of the criteria has been updated.
Declaration
public virtual void OnCriterionUpdated()