Class TutorialParagraph
A section of the TutorialPage.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
[Serializable]
public class TutorialParagraph : ISerializationCallbackReceiver
Fields
Text
Text/description for Narrative/Instruction or button text for SwitchTutorial.
Declaration
[LocalizableTextArea(1, 15)]
public LocalizableString Text
Field Value
Type | Description |
---|---|
LocalizableString |
Title
Title for Narrative/Instruction, not applicable for SwitchTutorial currently.
Declaration
public LocalizableString Title
Field Value
Type | Description |
---|---|
LocalizableString |
Properties
Completed
Is this paragraph completed? Applicable if this paragraph's type is Instruction.
Declaration
public bool Completed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Criteria
The completion criteria if this paragraph's type is Instruction.
Declaration
public IEnumerable<TypedCriterion> Criteria { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TypedCriterion> |
Image
The image if this paragraph's type is Image.
Declaration
public Texture2D Image { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Type
Type of this paragraph.
Declaration
public ParagraphType Type { get; }
Property Value
Type | Description |
---|---|
ParagraphType |
Video
The video clip if this paragraph's type is Video.
Declaration
public VideoClip Video { get; set; }
Property Value
Type | Description |
---|---|
VideoClip |
Methods
OnAfterDeserialize()
UnityEngine.ISerializationCallbackReceiver override, do not call.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
UnityEngine.ISerializationCallbackReceiver override, do not call.
Declaration
public void OnBeforeSerialize()