Best way to set ComboBox in a separate User Widget?

I have a User Widget that acts as a container for my settings menu. Each setting is a separate User Widget , included in the container widget’s hierarchy (see screenshot below). I ran into an issue where one of the User Widgets (WindowMode) in the hierarchy needs to effect the other (Resolution). More specifically, I need the WindowMode User Widget to set a ComboBox within the Resolution User Widget. I have not found a good way to achieve this, since neither User Widget has access to the the other’s instance.

Hierarchy - Top

Hierarchy - Resolution

Any ideas on how to best accomplish this is a decent way, without a crazy kludge?

In one of them, create a variable of the second widget type, and mark it as Instance Editable.
Now when you add it to your larger widget, you’ll be able to select the other widget as value of that variable.

Excellent. I will give that a try. Thank you very much.

I know I must be missing something obvious, but have been unable to implement the suggested solution. As both the WindowMode and Resolution widget blueprints are children in the hierarchy of the MainMeny widget blueprint, I am not seeing how an instance variable defined within one of the children can be exposed to the other. Please let me know if I am overlooking something obvious.

  1. You have two BPs: BP_ScreenModeWidget and BP_ResolutionWidget;
  2. In BP_ScreenModeWidget graph, create a variable ResolutionWidgetRef and select its type as BP_ResolutionWidget;
  3. Mark this variable as InstanceEditable;
  4. Compile all;
  5. Now when you add BP_ScreenModeWidget to your MainMenu widget, it will have the variable exposed in its details:
    image
    As long as a BP_ResolutionWidget is in the same ultimate parent widget, you’ll be able to select it here; the hierarchy doesn’t matter.