Class CodeSampleParagraph
A paragraph of a TutorialPage that includes a block of code, and a button to copy it in the clipboard.
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 CodeSampleParagraph : ParagraphBase
Fields
CodeSample
The code being displayed in the paragraph.
Declaration
public string CodeSample
Field Value
| Type | Description |
|---|---|
| string |
Methods
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. |