I design a camera HUD which can display the current camera moving speed, and I can change the speed in the camera blueprint. For displaying the current speed, I create a custom event to pass the speed value to HUD Widget Blueprint. just like below:
but it doesn’t work, the text keeps be the defalut value 100. And then I print the value, it’s actually pass the right value and change the local variable(CameraSpeed) in HUD Widget Blueprint.
Thanks! I figure out my problem, I create widget twice in different blueprint, I add to viewport in the level blueprint. But I call the event in the camera blueprint, the change in camera blueprint does not display.