Class TutorialContainer.Section
A section/card for starting a tutorial or opening a web page.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
[Serializable]
public class Section
Fields
Heading
Title of the card.
Declaration
public LocalizableString Heading
Field Value
Type | Description |
---|---|
LocalizableString |
Image
Image for the card.
Declaration
public Texture2D Image
Field Value
Type | Description |
---|---|
Texture2D |
Metadata
Used as content type metadata for external references/URLs
Declaration
[FormerlySerializedAs("LinkText")]
public string Metadata
Field Value
Type | Description |
---|---|
String |
OrderInView
This value determines the position of a section / section card within a container.
Declaration
public int OrderInView
Field Value
Type | Description |
---|---|
Int32 |
Text
Description of the card.
Declaration
public LocalizableString Text
Field Value
Type | Description |
---|---|
LocalizableString |
Tutorial
The tutorial this container contains
Declaration
public Tutorial Tutorial
Field Value
Type | Description |
---|---|
Tutorial |
Url
The URL of this section. Setting the URL will take precedence and make the card act as a link card instead of a tutorial card
Declaration
public string Url
Field Value
Type | Description |
---|---|
String |
Properties
IsTutorial
Does this represent a tutorial?
Declaration
public bool IsTutorial { get; }
Property Value
Type | Description |
---|---|
Boolean |
TutorialId
The ID of the represented tutorial, if any
Declaration
public string TutorialId { get; }
Property Value
Type | Description |
---|---|
String |
Methods
OpenUrl()
Opens the URL Of the section, if any
Declaration
public void OpenUrl()
StartTutorial()
Starts the tutorial of the section
Declaration
public void StartTutorial()