Unreal Engine 4 Blueprint

I'm new to unreal I have a problem with the post from Hud_Blueprint to Level_Blueprint.
I want to have a slider in Hud that controls the rotation of the cube in the level.

In Hud_Blueprint I have a slider that I made in Widget_Blueprint. Works fine, print values โ€‹โ€‹are 0 to 1. I tried using Interface_Blueprint as in the following link with no success. https://answers.unrealengine.com/questions/22126/pass-variable-from-hud-blueprint-to-level-blueprin.html

my blueprints: https://www.dropbox.com/s/k30ah9fjuwlff6x/zusammen.jpg?dl=0 (404 answer)

It looks like I have no link between the drawings.
The function only works in Hud_Blueprint.

+3


source to share


2 answers


Well, your problem may have been solved, but someone might find it helpful:

First, create a new WidgetBlueprint and name it "Slider".



In the slider editor, create an event dispatcher named "ValueChanged" with float input. In the designer add a slider and add it OnValueChanged. From this node, you should call ValueChanged with the resulting value as a parameter.

In the level plan on EventBeginPlay, create a SliderWidget and add (return value) to the Viewport. You have to promote the Slider to a variable in order to use it in the next step - Assign ValueChanged with a new event that will close the rotation login when it is executed. See Image of Dropbox

0


source


If you select your cube in the level, and drag it to your HUD_BP, you can get an object reference this way. Then you can drag the contact from the object reference and callSetActorRotation



0


source







All Articles