I’m trying to make the character mesh changes if I press a button on my widget.
but it can’t cast, can someone tell me what I do wrong?
Think that if the pure cast wasn’t successful you should’ve gotten some serious errors. You could try to check if it the reference from AsThirdPersonCharacter is valid or GetPlayerCharacter with an impure cast node and check if the cast fails using print nodes.
Also consider the possibility that the problem could be elsewhere.
and here are the error log:
Server logged in
Play in editor total start time 0,103 seconds.
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: C Male
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: C Female
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: Custom Event
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: Fe 1
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: Fe 2
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsThird_Person_Character”. Blueprint: UI_C Function: Execute Ubergraph UI C Graph: EventGraph Node: Fe 3