Class TutorialContainer.Section
A section/card for starting a Tutorial, or opening a web page.
Inherited Members
Namespace: Unity.Tutorials.Editor
Assembly: Unity.Tutorials.Editor.dll
Syntax
[Serializable]
public class TutorialContainer.Section
Fields
Heading
Title of the section.
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 URLs.
Declaration
[Tooltip("Used as content type metadata for external URLs")]
[FormerlySerializedAs("LinkText")]
public string Metadata
Field Value
| Type | Description |
|---|---|
| string |
Text
Description of the section.
Declaration
public LocalizableString Text
Field Value
| Type | Description |
|---|---|
| LocalizableString |
Tutorial
The tutorial this container contains
Declaration
[Tooltip("The Tutorial to start when the section type is set to be Tutorial.")]
public Tutorial Tutorial
Field Value
| Type | Description |
|---|---|
| Tutorial |
Type
The type of section.
Declaration
public TutorialContainer.SectionType Type
Field Value
| Type | Description |
|---|---|
| TutorialContainer.SectionType |
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
[Tooltip("The URL to go to when the section type is set to be an external link.")]
public string Url
Field Value
| Type | Description |
|---|---|
| string |
Properties
IsConfiguredCorrectly
Is this section set up properly? Does it have all the data needed to fulfill its purpose?
Declaration
public bool IsConfiguredCorrectly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsTutorial
Does this represent a tutorial?
Declaration
public bool IsTutorial { get; }
Property Value
| Type | Description |
|---|---|
| bool |
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()