class MAGES::SceneGraph::Editor::ActionReferencePropertyDrawer

Overview

Draws an ActionReference as a searchable dropdown of the actions in the graph. More…

class ActionReferencePropertyDrawer: public PropertyDrawer
{
public:
    // methods

    override VisualElement CreatePropertyGUI(SerializedProperty property);

    override void OnGUI(
        Rect position,
        SerializedProperty property,
        GUIContent label
    );

    override float GetPropertyHeight(SerializedProperty property, GUIContent label);
};

Detailed Documentation

Draws an ActionReference as a searchable dropdown of the actions in the graph.

There are two editors to serve. Version 2 builds its inspectors with UI Toolkit and hands the drawer the GraphData being edited as the serialized object’s context; version 1 builds them without a context and falls back to IMGUI. Both open the same PopupPalette, which wraps UnityEditor.PopupWindow and so works from either, meaning search is available on both paths.