GetWidgetFromName failed

GetWidgetFromName will return null,if I nest a UserWidget Blueprint (A) into another (B) ,and trying to find a UWidget pointer of A.

92997-{03af0735-cc45-4e77-914f-b5f849b085c1}.png

It’s like this.I want to get a UWiget pointer which is in the SelectRoleListBP,the GetWidgetFromName will return null.

Do you notice that you can have Multiple Widgets with the same “Display” Name? But the Function returns just a single pointer? I guess you used “SelectRoleListBP” as parameter but it expects a Unique “Object” Name. It should be the same name as the Variable inside your graph but if you are unsure Print Sting out the Object Name (Not Display Name!)

Good Luck =)