Casting variable from Character BP fails

Hello. I’m a newbie in UE5 so please explain your answer.
I’m currently making a Sensitivity slider by following this tutorial I did everything how he did, but when i compile and run the game i get a strange error.
Here is a screenshot that might help


Unfortunately the forums wont allow me to embed a second screenshot of how I actually cast to the Character BP, but it is (probably) casted all right.
Thanks in advance!

hi,welcome.

you need to find the place where the widget was created(create widget,add to viewport…).i think it’s in the third person charecter blueprint.

i notice you exposed the charecter variable in the widget blueprint.
QQ图片20240729011753

that means there should be an input pin on the “create widget node”.make sure you have plugged the charecter into it.

the error massege says that the charecte is not valid,means you didn’t assign a charecter to the variable you created in the widget blueprint. the charecter variable is currently empty. :slightly_smiling_face:hope it helps

Thanks for the reply! I’ll check it out when i can!

can you show me what you mean with a screenshot? would be incredibly helpful! <3