I am making a widget to set a countdown timer, but I just don´t know what to put in the object part of my cast to
Could someone please explain to me what I need to put in the oject spot, but I don´t know exactly what.
I am a brazilian programmer and I need some assistance, I am just getting the hang of it but I can´t find this one. I am making a countdown timer and for that I need to work with my ActorBP, he is the one making my time go down but in my widget it won´t appear so that I can see if it is working, I only want to see the timer go down instead of nothing. If someone has an alternate solution to what I did feel free to tell me or if I did something wrong also tell me, I am new in unreal and am not that good, this is my finishing work for this year of my programming school and a helping hand would be nice. If this was too complicated for you ust comment so I can explain it a little better if I can.
What is ActorBP? Is it a player controller? Is it a pawn?
Widgets have owners, an owner is a player controller. If your ActorBP is a player controller, then in your widget call "Get Owning Player" and pass it as the object for your cast.
If your ActorBP is a pawn, then in your widget call "Get Owning Player Pawn" and pass it as the object for your cast.
answered Dec 12 '18 at 05:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here