No cast to my BP_Character in Widget IU

The title says all… I tried everything but this cast just don’t work. I did this same cast a lot of time, and never fail to me.

It’s supossed to cast to “BP_Prota”, but nothing happens. What did I miss?

Thanks!!

2 options:

  1. BP_Prota is not derived from Character;
  2. The character class selected in Game Mode is not BP_Prota.
2 Likes

I see no 3rd option; but also consider this when working widgets:

Looping in construct can lead to quite a bit of slowdown if your widgets get complex and there are a lot of them. Negligible impact otherwise.

1 Like

Option 2 was the solution! Thank you :slight_smile:

1 Like

Noted and already implemented. Thank you for the advice!