I know roughly until I get the height of the pawn and print string, but how do I display that value on the UI canvas?,update it only when the z value changes?
Could you rephrase your question or explain further of what you need assistance with? I am having an issue understanding what you are trying to accomplish.
I’m sorry I didn’t explain it enough.Thank you for your reply.
Ultimately, I solved it myself.
Just in case.
I want to display the height information of the freely moving pawn used in
architect visualization on the widget. I didn’t want to use “Event Tick”, so I was looking for a way to get the z-position only when controlling the player.
As a first test, I did the following with the widget bp’s “Event Tick”. I got the height of the pawn and connected it to “To Text(Float)” and then to “PrintString”. This worked as expected.
But I couldn’t figure out how to get the z-position only when some input is given.
So I did the steps already mentioned for the pawn bp instead of the “Event Tick” in the widget bp.
First I set on/off with boolean variables for each input event that affects the z position.
Then I conditionally branched on “Branch” using the previously mentioned variables for each input, got the height of the pawn and connected it to “To Text(Float)” and then to “PrintString”.
This worked!
Finally, with “get all widget of class”, I got the variable character of the target widget whose height I want to display, and connected this to “SetText(Text)”. and connected “To Text(Float)” to this.
Sorry for the bad sentences.
Thank you.