Editor Scripting Costum interface / inspector for Enum[,]

Im trying to build a inspector interface for Enum[,].

I found this script: EditorGUIExtension

This editor script enables a nice inspector field for a array of enums.

so tried to port the function from

 public static Enum EnumToolbar(Enum selected)

to

public static Enum[,] EnumArrayToolbar(Enum[,] selected)

I wrote a Debug.Log(“test”); in the new function but it does not get called.
So i try in the old (and proper working) function and the same … no sing of Debug.Log.

I may have missed the point but could you not use Unity - Scripting API: EditorGUILayout.EnumPopup

Nice to know that EditorGUILayout.EnumPopup exist but im trying to make a interface for a 2 dimensional array of enums.

if you have an enum list use EditorGUILayout.EnumPopup into foreach in your enum list ?

As JulienG said above and use EditorGUILayout.BeginVertical and EditorGUILayout.BeginHorizontal etc to make a 2d grid of enum popups.