Widget creating

Widgets are not creating in any project when packed, but works in editor. Help?

------------------------ LOG: ------------------------

[2020.01.13-14.52.03:641][315]LogBlueprintUserMessages: [ThirdPersonCharacter_167] 1-1
[2020.01.13-14.52.03:641][315]LogScript: Warning: Accessed None trying to read property NewVar_0
ThirdPersonCharacter_C /Game/ThirdPersonBP/Maps/ThirdPersonExampleMap.ThirdPersonExampleMap:PersistentLevel.ThirdPersonCharacter_167
Function /Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C:ExecuteUbergraph_ThirdPersonCharacter:0095
[2020.01.13-14.52.03:641][315]LogScript: Warning: Script call stack:
Function /Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C:InpActEvt_One_K2Node_InputKeyEvent_0
Function /Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C:ExecuteUbergraph_ThirdPersonCharacter

I didn’t know there is UserWidget…

It looks like you are trying to add a widget to the Pawn instead of the PlayerController.

If you are inside the the Pawn, get a reference to the [OwningPlayer][1], Cast to your PlayerController, and add that to the OwningPlayer pin on the Create Widget Node.

295322-widget.png

If you are in the PlayerController, same thing but you can just get a Reference to Self.