Class MaterialIdRefDrawer
Custom PropertyDrawer for MaterialIdRef that provides dropdown selection of material IDs. Searches for a ProceduralExpressionProfileSO in the same folder or parent folders to populate the dropdown with available material IDs. Falls back to text field if no profile is found.
Namespace: Serenity.ProceduralExpression.Infrastructure.Editor
Assembly: Serenity.UnityProceduralExpression.Infrastructure.Editor.dll
Syntax
public class MaterialIdRefDrawer : PropertyDrawer
Constructors
MaterialIdRefDrawer()
Declaration
public MaterialIdRefDrawer()
Methods
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | position | |
| SerializedProperty | property | |
| GUIContent | label |