Hi all, Please help on how to rotate the speedometer needle as soon as i play the scene in widget blueprint.
Here i need the speedometer rotation without casting to any other actor for getting velocity.
Somebody please help…!!!
Hi all, Please help on how to rotate the speedometer needle as soon as i play the scene in widget blueprint.
Here i need the speedometer rotation without casting to any other actor for getting velocity.
Somebody please help…!!!
Have the car blueprint create the widget - that makes sense, right. Then you do not even need to set up anything. You already have a reference…
Rather than having the widget ask for velocity, have the car tell the widget what to do.
Both are in the car blueprint. Create the widget:
And then Tick this:
You can put the above in the widget’s custom event to keep it somewhat elegant.
You can communicate between most actor types in UE using the game instance. You certainly can pass info between your car / speedo and the widget.
@ClockWorkOcean , Thanks for the reply. Is there any example like what you have mentioned?
Thank you so much for the answer.
I’d say go for Everynone’s solution below. But come back if you want a specific game instance example…