YES!!! This is exactly what I've been trying to figure out for like a week! You're like the only one who has a good video on this. SO helpful
@mrmensje1
2 жыл бұрын
tysm for sharing! your bit of script worked amazingly for keeping a hud widget at the point of which my player can drag objects. Thanks a lot you saved me a lot of time :D
@herodev7772
Жыл бұрын
Very usefull man. I use it in my space shooter game. In Unreal 4.26 and works perfect. Thanks a lot!
@finesseandstyle
Ай бұрын
Hi, share a video of some gameplay maybe?
@swedishviking4450
5 жыл бұрын
Amazing video first of all. I realized the widget stops ticking when unrendered if that helps anyone.
@startmanful1
8 жыл бұрын
Im making a game for a school project and this tutorial will help me out a lot! Thanks man
@RegimeTyranny
Жыл бұрын
If anyone is struggling with the widget being off-center, divide the values by Viewport Scale right before you set the widget position.
@Amioran
8 жыл бұрын
I like this level very much. Good idea the picnic in the park and the assets looks very well done (the only thing I would add would be wind for the foliage as in a such close area the effect is important imo). I hope you will be able to finish the project and release it. As for your trouble in the end: outside of screen UMG widgets with a canvas get automatically hidden (i.e. stop from rendering) when going off-screen and you have to manually force their visualization when they are in screen space (in the tick however it doesn't work because the tick remembers that they are stopped rendered and don't run the code tied to visualization updating anymore - this is a performance safe precaution to stop wasting cycles in hidden objects for what it concerns their rendering). IIRC you can override this behavior in the source code but I don't remember where it is specifically. If you don't want this to happen you have to use 3D widgets with a component (that's also much better for what you are trying to do) or don't use a canvas in them.
@IncursionRR
4 жыл бұрын
When I'm turned away from the object the widget just stays at 0,0 in the viewport, how to fix this?
@furrybproductions
3 жыл бұрын
I figured out why you had to subtract 25. You could've gone with 24. That's how many pixels the unreal engine preview window takes from the top of your screen. If you check screen position, for width you can go all the way to 0, but for height the lowest you can go is 24. Hope that helps.
@crossmr
Жыл бұрын
It's also worth noting that when you play in viewport UI stuff is always a bit messed up. It's better to play in a new window when you are testing UI stuff to try and get a better view of what is going on.
@Luis519RS
8 жыл бұрын
It appears everything that leaves screen space on a widget unrenders. Same as moving something out of the screen space on the widget blueprint. Changed your method to a render transform-translation instead of setting the position on viewport, but it didn't work as expected. Although it did remained rendered it was offset by a half of the screen when tracking (replaced "Project World to Screen", for "Project World to Widget Positon" because "World to Screen" doesn't seem to take screen size into account). After that I just offset the result by half the image size to set the image were I wanted it.
@loading...7583
7 жыл бұрын
0:48 dude why you add so many guts coming out of the poor bee. LOL
@vegitoblue2187
4 жыл бұрын
you could use a timer instead of tick to reduce the frequency of this logic being called
@chr0mat1q16
Ай бұрын
You saved my ass! 😅✨✨
@billyjohnny6225
4 жыл бұрын
Thank you for this tutorial
@maicogirardi
8 жыл бұрын
Did you know that you can change the pivot point of the image in the alignment option? Set it to 0.5 and you don't need all the maths eheheh
@RATSGAME
8 жыл бұрын
+Maico Girardi I did not and I'll look into that, thank you.
@schumirc2
Жыл бұрын
THXXXXXXXXXXXXXXXXXXXXXXXXX!!!
@samson2342
5 жыл бұрын
I know this is old but, ill try, for some reason, my sight wont disapear after target is dead, i dont get the issue either when target is off screen and it disapeared, mine stays perfectly on screen. It just wont disapear when enemy target is dead. Any feedback on that would be appriciated.
@CommanderColson
3 жыл бұрын
How are you creating a reference to the actor on the widget?
Пікірлер: 22