Dynamically set Menu Anchor Class

Is there no way to dynamically set the class of a menu anchor?

The only way I can find to set the menu class for a menu anchor is by directly selecting the menu anchor in the editor.

I am trying to set menu class from another blueprint (I have the menu anchor in a parent class, and need to set the menu class in the child blueprint)

1 Like

It’s doable, just a little strange:

  1. Select your Menu Anchor and scroll to the bottom of the Details panel
  2. Bind a function to On Get User Menu Content (On Get Menu Content is deprecated so don’t use that)
  3. That function expects you to return a widget, so it’s in here that you’d call the CreateWidget function. You can plug a variable into that and then you can define that class at runtime.