Class MediaParagraph
A paragraph of a TutorialPage used to display an image or a video.
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 MediaParagraph : ParagraphBase
Fields
Media
The media to display.
Declaration
public MediaContent Media
Field Value
| Type | Description |
|---|---|
| MediaContent |
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. |