logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    MaterialIdRefDrawer
    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
    In this article
    © 2026 Serenity. All Rights Reserved