Hi, there.
I’m trying to get get a reference to the specific user widget that’s being displayed in a Widget Switcher in my Options menu. But the issue is, the Get Widget At Index node gives you an object reference of a User Widget, not of the specific User Widget class you’re using. This gives me this issue when I try to get an object reference of the instance of the Widget Class I’m using to cast to a GameMode which will distribute that reference to all other User Widgets that run in the Main Menu level.
ChatGPT’s telling me that just casting the reference to the User Widget Class that’s actually supposed to be the type of your object reference, then sending that reference to the GameMode - will change that reference to the type you need, which sounds like black magic to me. Also, to do that cast, you’d need a reference of that User Widget Class to use as the Object input on the ‘Cast To’ node, which is impossible, because I don’t have it in the first place.
So, what should I do?
Any fixes are appreciated.
Thank you!
P.S. I will be out of the country by tomorrow, so if you have time to answer, please don’t wait.