Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

MenuCommand is null when received

$
0
0
EditorUtility.DisplayPopupMenu(new Rect(mousePosition.x, mousePosition.y, 0, 0), "MyMenu/", new MenuCommand(MyObject, MyInt)); [MenuItem("MyMenu/Print MyObject")] static void PrintMyObject(MenuCommand command) { Debug.Log(command.context.GetType() + " " + command.userData); } Hi All, When I receive the menu function call, PrintMyObject(), the MenuCommand is null. Any Advice? Thanks,

Viewing all articles
Browse latest Browse all 7934

Trending Articles