Class NarrativeParagraph
A paragraph of a TutorialPage used to display a block of text.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Tutorials.Editor.Paragraphs
Assembly: Unity.Tutorials.Editor.dll
Syntax
public class NarrativeParagraph : ParagraphBase
Fields
Text
The text shown in the paragraph.
Declaration
[LocalizableTextArea(3, 15)]
public LocalizableString Text
Field Value
| Type | Description |
|---|---|
| LocalizableString |
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 override bool CanMask()
Returns
| Type | Description |
|---|---|
| bool | If true, this paragraph provide MaskSettings to be applied. |
Overrides
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 override VisualElement GetDisplayRoot()
Returns
| Type | Description |
|---|---|
| VisualElement | The VisualElement that contains the paragraph. |