Casting To Player Character In A Widget BluePrint Always Fails

When I Try To Cast On Event Construct Inside my Shop Widget It Always Fails


I’ve Tried Almost Everything And Have No Clue Why It Doesn’t Work It Works Perfectly Fine In My MainHud In Game But Not in my Shop Widget

My guess is you could try just putting a .2 second delay in front of the cast.

Though, we don’t have enough information to know why it is doing this. Are you moving to a new “level” when the player goes to shop?

The Shop Is In The Same Level As My Main Menu
I Will Try The Delay

The Delay Didnt Work

The Shop Is In The Same Level As My Main Menu

Okay, so the character goes to the main menu (and the main menu CAN cast), and then there is an option in the main menu to go to the shop, but the shop CAN NOT cast. Do I have that correct?

Yes

When the main menu button is pressed to go to the shop, is the code for creating the new shop widget inside the main menu widget?

its creating a new widget that goes over the main menu

In that case, you could just use the player variable inside the main menu to set the one in the shop. You wouldn’t have to cast inside the shop widget at all then.

Granted, it would still be a mystery why you can’t cast in the shop, but working > understanding sometimes. :slight_smile:

Ill Give That A Try Thank You

That Way Didnt Work But I found A Workaround Utilizing Save Games

Thank You Anyway