recently i learn unreal by “unreal documents” and i’m stuck in ui design guide
in [generating experience] step
it’s just easy to follow before cast to firstpersoncharacter, but
i can’t find “get hudwidget” anywhere .
i searched this hub of course, but i can’t found answer, just said “that guide is old version”
I tried and it seems good tutorial, but it isn’t fit for me
in my case, the trigger of “take exp point” is “bullet hit”
blueprint node that about bullet hit is in the “projectile.blueprint”
but i can’t get the varients in “HUD.blueprint” there.
Hey, seems like you’re trying to cast a CharacterBlueprint from a ProjectileBlueprint.
I didn’t follow this tutorial, but seems like you need a reference to your game HUD stored in a variable.
On this page on the bottom it says "We are creating a Variable for the Game HUD Widget so that we can access it later. " , so recheck that, you need to have a variable (GameHud Blueprint object type) inside the CharacterBlueprint,
and on BeginPlay you set this variable , you give it a reference:
You’re welcome !
Please select correct answer by clicking the “check” button on the left of the Answer. It will also close the Question so that it is not among the “opened” questions that still need to be answered. Thanks