Class CodeSampleBlockDrawer
PropertyDrawer for CodeSampleBlock.
Inherited Members
Namespace: Unity.Tutorials.Editor
Assembly: Unity.Tutorials.Editor.dll
Syntax
[CustomPropertyDrawer(typeof(CodeSampleBlock))]
public class CodeSampleBlockDrawer : PropertyDrawer
Methods
CreatePropertyGUI(SerializedProperty)
Creates the VisualElement representing the code block, for usage in an Inspector.
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | property | The SerializedProperty that will be drawn. |
Returns
| Type | Description |
|---|---|
| VisualElement | The VisualElement that represents the control. |