docs.unity3d.com
    Show / Hide Table of Contents

    Class TutorialContainer.Section

    A section/card for starting a tutorial or opening a web page.

    Inheritance
    Object
    TutorialContainer.Section
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public class Section : object

    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
    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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023