TRIGGER BOX AND USERWIDGET HELP :(
I tried a bunch of stuff to try and manipulate the Text Block of a User Widget, some of them were close and ended up a failure, ive hit so many dead ends and the deadlines getting near, i need help :(
so i have this Trigger Box that has an FString named Help Text, and On Overlap Begin the variable will have a value ex.)
and on the UserWidget i binded GetText_0 to my TextBlock and the bp of GetText_0 is
soo ummm im having problem with referencing the Cast to MyTriggerBox1
people said that i need to cast something, but i am new to ue4 and i dont have any clue where and what to cast. /// What im trying to do is Manipulate the Textblock on my UserWidget named "PlayerHUD", using The TriggerBox, named "MyTriggerBox1". so if there is a more efficient or easier way or if my way will not work plss tell me.
asked Feb 13 '18 at 05:42 PM in C++ Programming
Follow this image: Get Player Character (note the 0 in the index. This may not work in multiplayer games.)
From the player character, you will get the hitbox, or the interacting item, which holds the hitbox.
As a general rule, when you cast something, you need to get an object to cast it into. Here is how to do it in C++:
answered Feb 14 '18 at 01:28 AM
You will either need to use the BeginOverlap event in the trigger box, then get your widget from there (Not sure where you widget is kept currently?). Or, in your widget, get the trigger box (Not sure where you trigger box is either?), and then hook up to the event:
answered Feb 15 '18 at 09:29 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here