Two important things: 1. You dont have to use a canvas panel for the window itself, you can cut down on cost by using a different container (Its parent still has to be a canvas panel). 2. If you're nesting, use a "self" variable when slotting as canvas slot (there doesn't have to be a canvas panel in this widget, as long as its parent is a canvas panel in whatever widget you're adding it to). Pretty much you dont wanna be using a canvas panel where you don't need to. I've been told by people smarter than me that they are expensive.
@UnrealSolver Жыл бұрын
Thanks for tips mate! ✌️❤️🔥
@AntrygJones Жыл бұрын
@@UnrealSolver You wouldn't happen to know how to do this on a world space widget (Widget component), would you? I imagine it's as simple as getting the cursor position relative to the space inside the widget, but I have no idea how.
@LinaBRT Жыл бұрын
Also, instead of using button you can use border and it's OnMouseButtonDown/Up function
@gorkhordakhor40072 жыл бұрын
Man one of the best tutorials for someone who already knows widgets but needs that moving solved. Really loved it!
@Vangriffeth Жыл бұрын
I have rarely come across a tutorial so succinct and so perfectly on point. Subbed and liked, thank you for this.
@UnrealSolver Жыл бұрын
Wow, thank you so much! 💖 And you taught me a new word right now, thanks for that one too😝
@murnoth2 жыл бұрын
I searched and tried with the Drag Drop Operation for SOOOO long and it seems like this would be a common thing that people do but I guess not. Thank You for sharing!
@UnrealSolver2 жыл бұрын
The drag and drop operation probably can be used but it’s intended for something somewhat different That’s why this video came out 😁 Thanks and glad it worked for you!
@l_t_m_fАй бұрын
@@UnrealSolver I wish I saw this first... I solved it with Drag n Drop and it wasn't simple especially duplicating the widget appearance and hiding the original...
@victorkarlsson99553 ай бұрын
I had to watch in 0,75 speed, totally worth it. Why even bother with DragDrop shit when you can do this? Amazing my man!
@RattleSnake2028Ай бұрын
A master class and still working with UE5 Thank you so much
@UnrealSolver13 сағат бұрын
Thank you so much! Glad to hear that ;)
@AllDayBikes2 жыл бұрын
This 7 minute tutorial took me almost 7 hours. I just started using UE5 about 90 minutes before that. I was also stubbornly trying to figure half of it out on my own before watching and being waaaay off lmao. Coming from coding c# to using blueprints is strange, but nice.
@UnrealSolver2 жыл бұрын
Well, if your are a newcomer then it may be hard to follow my tuts and you may need to pause it meantime I’ll keep that in mind when making new videos 👌 And for me I would feel same when watching tuts about c# coding 🤣 By the way - check the description for the actual version of my project so you can take a look inside but be aware - some stuff isn’t done the most optimal way and BP in actual state needs some fixes and comments
@nickharding70784 ай бұрын
THANK YOU for this! Was able to convert it to c++ for my project, really appreciate quality tutorials!
@UnrealSolverАй бұрын
Happy to hear that! Keep up the awesome work! 💪
@AurynGaming Жыл бұрын
Awesome tutorial in both style and delivery!
@UnrealSolver Жыл бұрын
Wow, thank you! I love the fact you loved it ❤️🔥🤌
@AurynGaming Жыл бұрын
@@UnrealSolver I have 1 small bug with this design I wonder if you have solution. I have the moveable widget I have set to a key toggle (character sheet), when I move the window or interact with it and toggle is closed I have to click twice to gain focus back to my character. any ideas?
@UnrealSolver Жыл бұрын
After you perform the task of “close window” - add a node “Set Input Mode to Game Only” This exists in the Player Controller so either add a Function there to perform it or simply use GetPlayerController -> Cast To(MyCustomPlayerController) and from the blue output pin of the Cast pull out and find the Input Mode node That should do the trick ;)
@darkknightleon98435 ай бұрын
It's the simplest solution I found. Thanks
@UnrealSolver5 ай бұрын
Awesome, thank you for Feedback and I am glad it was helpful!
@boldizsarszabo8 ай бұрын
Thank you so much for this! By the way, is there a reason why you aren't using the built in UDragDropOperation for this? I'm just curious, since every other tutorial uses it
@UnrealSolver8 ай бұрын
Thank you, glad you find it useful ❤️🔥 Theres not much reasoning besides its simplicity of the setup and its math and showing the diversity of setups that can give you pretty same functionality, also the “get slot as canvas” is not that known yet useful in UI ✌️
@DolzzDesign Жыл бұрын
You absolutely rock! (this works in ue5)
@UnrealSolver Жыл бұрын
Thank you so much ❤️🔥 I am really happy to hear it all works for you ✌️😊
@leetness1310 ай бұрын
good tutorial thanks a lot ! only thing to say is that if you need to do something on tick, do it on tick, its there for a purpose. those half assed 0.01s looping timers are not any better
@UnrealSolver10 ай бұрын
That’s totally true :) Tick exists to be used and this wouldn’t be so much to run a short function checking if we’re trying to move the window under the cursor, thanks for the insight and your kind words 🍻
@Xoremus722 жыл бұрын
This was incredibly helpful! Great tutorial. I really hope you do more with the scaling and resizing of widgets. For instance how to scale the widget to close over all the things inside. Also maybe how to make it so you cant scale it into the negative. I might be stating that the wrong way lol. Really liked this short series!
@UnrealSolver2 жыл бұрын
Thank you so much mate! ❤️🔥 For now it was recently upgraded to have Favorites functionality, it needs some fixes tho including restrictions and I think that may be a good addition as a video, thanks for suggestion 😁 And I am glad you like it so far! 🍻
@李佳奇-w9z Жыл бұрын
If I don't create the controller base and HUD? Can I do that? I appear this error "PIE: Error: Blueprint Runtime Error: "Accessed None trying to read property CallFunc_SlotAsCanvasSlot_ReturnValue". Node: Set Position Graph: EventGraph Function: Execute Ubergraph WPT Popup Blueprint: WPT_Popup"
@UnrealSolver Жыл бұрын
Of course you can skip the controller and hud creation and have it working Accessed none error = you try to use something that is not valid (doesn’t exist, is being destroyed, is empty, etc.) so this is your coding issue and has nothing to do with having or having not the HUD and Controller
@李佳奇-w9z Жыл бұрын
@@UnrealSolver But I don't know why my widget can not move. I already followed follow your step. The blueprint of he movable user interface as same as 4:18.
@李佳奇-w9z Жыл бұрын
I just have one main_ui and one_ui(like your some window). And then, the blueprint of one_ui is same as 4:18. And the level blueprint as same as 4:19.
@李佳奇-w9z Жыл бұрын
oh, I solved my problem. I need to notice which container including my wanted movable widget. Thanks!!! I also still looking forward to your mini-video player tutorial video. :)
@UnrealSolver Жыл бұрын
@@李佳奇-w9z at best share some screenshots on my Discord, I cannot imagine what is your issue exactly (link in About of my channel)
@Helgrind4411 ай бұрын
Thanks, I followed the drag and drop Unreal tutorial but there was a lot of weird annoying behaviour. This is much better.
@deeppixelstudio3 ай бұрын
is it possible to drag one of these windows on to (lets say you had 2 monitors) your other screen. So the game on your right and the floating window on your left? i.e. is it possible to make it exit the game space if you wanted
@UnrealSolverАй бұрын
You would need some C++ to create a totally new Window as the Widget (and the whole game) exists only on the Client Window, so if you "exit" the borders it just disappears, but it would be totally possible to make a new Window and smash the Widget there to exist as separate instance ;)
@LandmineSoldier Жыл бұрын
This tutorial is cool and very easy to understanding. Thank you for upload this video
@alejorives62312 жыл бұрын
wow i love how you explained everything, love the video!!!
@UnrealSolver2 жыл бұрын
Thanks for the kind words ^_^
@dclipca8 ай бұрын
Really nice, helped me a lot. Though, I do think a better implementation is making a bIsWindowHeaderHeld and setting the position of slot if bIsWindowHeaderHeld is true, from the Tick node.
@katiekaliber Жыл бұрын
Hi, i really liked the video but sadly i can't figure out why this won't work for me. Everything seems to be working fine, but the mouse click doesn't seem to be getting registered for as long as i hold it down because the window will move a millimeter towards where i drag it. I've gone over the the video so many times now, everything seems to be linked up right. Any idea how this could happen? Maybe some kind of setting somewhere? I'm really lost and would love to watch the next video about this but there is no point if i can't get this to work.
@UnrealSolver Жыл бұрын
Hi, glad to hear you like it ;) It sounds like there’s something with the timer - did you select “looping” on the timer so it runs until you stop it manually? There may be other things too but check this out, also if possible - share a screenshot of your BP Setup on my discord (link in About of my channel)
@katiekaliber Жыл бұрын
@@UnrealSolver Such a quick response thank you. I managed to make it work, but honestly i just restarted unreal, duplicated the widget and replugged the pins, and it worked so maybe my project was being strange xD I was wondering if you'd by any chance would know how to make these calculations on a 3d widget? The code is definitely firing and the window is trying to drag but it doesn't seem to find it's place. I'll hop in the discord anyway because you seem to have some interesting stuff on your channel, but i was wondering if this was even an option in this set up.
@UnrealSolver Жыл бұрын
@@katiekaliber you’re the 2nd person asking for such functionality on a 3D widget. Although I don’t know the answer for it right now I will take a look on it and make a proper tutorial :)
@CD-dy9kn Жыл бұрын
How do I make sure the widget cannot be moved outside the display screen? cause I can drag it to the outside of the game window and i cant return it
@UnrealSolver Жыл бұрын
Download the Project - it has code that checks if you got your mouse to or behind the window and it pushes the window to the side or corner ;)
@CD-dy9kn Жыл бұрын
@@UnrealSolver is it possible to do it by checking the size of the window? so that the window never goes off screen in the first place?
@UnrealSolver Жыл бұрын
@@CD-dy9kn not sure if it’s possible without any external interference, there’s for example a plugin called “monitor utilities” which can check size of window + instead of “get mouse position on screen” you can use get mouse position of platform which returns a different value
@ikshura Жыл бұрын
Short and exactly on point. Thanks for the video!
@UnrealSolver Жыл бұрын
Thank you for the kind words mate! ❤️🔥
@conkerthesquirrel43312 жыл бұрын
You deserve more likes and subs. ty sir. This was clear and concise.
@UnrealSolver2 жыл бұрын
Thank you! But if I deserve more likes and subs then you all deserve more content 🍻
@Kaselmeyk_Ilya Жыл бұрын
I liked that it was short and simple. I was only looking for a piece of code. Music is superfluous.
@UnrealSolver Жыл бұрын
Thank you! 😍 glad to hear you love it! ❤️🔥
@anrvy Жыл бұрын
I love you, perfect technical explanation, yes sir 👌
@UnrealSolver Жыл бұрын
I love you too! ❤️🔥 thank you for your words✌️
@warszawscy4 ай бұрын
Thanks bro! You are amazing, subbed and liked. Love u
@UnrealSolverАй бұрын
Thanks man, happy to hear that! 💪 Pozdrówka i dziękówka :D
@TorQueMoD2 жыл бұрын
Perfect tutorial. Short, Sweet and to the point. Thanks for sharing :)
@UnrealSolver2 жыл бұрын
Wow, thank you! Glad it worked so good for you! ❤️🔥
@SpotCallerzWrestling2 жыл бұрын
Thank you so much for this! Also.....is that MJF's theme song that kicks in the background @6:00?
@UnrealSolver2 жыл бұрын
Two Moons by Bobby Richards - got from the KZbin Audio Library ;]
@Mineceater Жыл бұрын
Very helpful. Good and fast pacing, everything Explained and Shown. Maybe use the timestamp to get more experienced programmers to the part they need. Keep it on!👍
@UnrealSolver Жыл бұрын
Thank you so much and as well thanks for the suggestion, that totally makes sense! 🤌❤️🔥
@thiccchanka275226 күн бұрын
When try to move the widget around it works for some microseconds then auto unclicks
@UnrealSolver13 сағат бұрын
HO, I can assume that it’s one of two following cases: 1 - time on timer is 0 (then it ticks once even if you select looping) 2- timer has Looping turned off Otherwise you have tick disabled or sth
@stormstudios12 жыл бұрын
im using an image but why does it resize it instead of moving it, even if i put the image in a canvas panel it doesnt work
@UnrealSolver2 жыл бұрын
What do you mean that you put an image and it resizes? When you select Anchors - this will already somewhat specify the behaviour so if you make full screen - the image attached will go full size of Parent, but if you change Anchor to f.ex. One corner- it should move, but not resize
@stormstudios12 жыл бұрын
@@UnrealSolver what is f.ex edit: nvm
@UnrealSolver2 жыл бұрын
@@stormstudios1 did my advise work for you? 🤔
@stormstudios12 жыл бұрын
@@UnrealSolver yea when i watched the video i didnt do the corner thing bc i thought it wouldnt work with how i setup my image so the comment made me try it and it worked but now i just need to find how to make the image not move beyond the bounds of the canvas (because its a image bigger than the canvas that the player can move)
@UnrealSolver2 жыл бұрын
@@stormstudios1 in practice you can make a piece of code that will update the size and placement of you move the main part
@sirgoofy56122 ай бұрын
when i do it i cant drag it anytime i click and hold it just teleports
@UnrealSolverАй бұрын
Make sure you have the right Anchors and math operations is doing the right calculations If you wish we can troubleshoot it on my Discord ;) discord.gg/ebWeqJv68B
@Obliviander2 жыл бұрын
Nice tutorial! followed it and it works great in UE5 too. The only thing I feel is missing, is some kind of collider so that I can't drag it off screen and lose it, would this be easy to achieve? Thanks.
@UnrealSolver2 жыл бұрын
Thanks, glad you liked the instructions ❤️🔥 I had to use some sort of trickery because whenever you move the mouse away from the game window - it forgets about current window so I added a reference to window that you hold and move once it’s back with positive mouse XY Additionally I made them stick to sides and edges using some simple math and I used a node that blocks mouse within game viewport, I can include your request in next episodes about widgets, for now if you want you can find a link in the description with a project to download, but it’s been made using UE4.26
@Obliviander2 жыл бұрын
@@UnrealSolver Thanks cool! Im not in a rush, so I can wait for your next video about this:) And thanks so much for the fast response! Subbed
@BlacklusterPally Жыл бұрын
on the dowloadable project, something is broken and now you have to click to stop the window moving, great stuff anyway! hope to see something with the drag and drop operation, because my widget isn't a button, but a panel, so i can't use the "on click" events things
@thedarkparallax18874 ай бұрын
didnt work! It doesnt move the widget at all. When I use mouse pos minus canvas pos it will move but only once per click, does not update position every frame while mouse is held down. when I use mouse pos minus click location diff it doesnt not move the panel at all.
@UnrealSolverАй бұрын
Are you sure you've selected "Looping" on the Timer? Also if you had - if the time is 0 it will tick only once
@thewhiteghostproject6722 Жыл бұрын
Awesome tutorial, very informative. Anyone else notice MJF's AEW theme song playing in the background? XD
@UnrealSolver Жыл бұрын
Thank you mate! ❤️🔥 It’s rather rare that someone recognises names of songs, nice one 🤌
@ptilu21952 жыл бұрын
How can i replace a widget by another and wherever the window is on the screen , it fits the other widget location ? Thanks :)
@UnrealSolver2 жыл бұрын
You probably mean to create a new type of window and switch them by any means like f.ex. Button Things like location would have to be stored in variables, otherwise you loose them when you “remove from parent You can use the HUD or Player Controller to save those values (2D Structs) and use them when swapping windows In the Video Description you can find link to the bit more advanced version of the widgets - when you click on one they rearrange so the new one is on the top, to do so I had to remove them from parent and re-add so they appear on top and that means I had to save all necessary info to recreate in the newly spawned window ;) Check the Project out as it may come in handy, it also contains a Notepad that’s able to save “files” ;)
@ptilu21952 жыл бұрын
@@UnrealSolver thank you very much 💖
@UnrealSolver2 жыл бұрын
Just to let you know - the Project has been expanded with Favourites, weights only about 50mb after migration Has small issues which will be fixed soon ✌️
@Trakkis2 жыл бұрын
Great tutorial excactly what i needed thanks! One thing tho, how do i make it so that you cannot move the widget outside of it's border
@UnrealSolver2 жыл бұрын
Personally I locked the mouse within viewport in my downloadable version so you can partially move the widget to side and whenever the mouse touches the border the widget sticks to it ;) Otherwise if you don’t lock the mouse then there’s a trick for that - when mouse escapes the Viewport it doesn’t get cached so you have to save the widget you’re moving in a variable on click so your program remembers which widget you’re moving when you come back with the mouse ;] There’s a link in the description to a lil demo that has movable, scalable widgets and a text editor that can save “files”, check it out to see how I handle such stuff ;)
@Trakkis2 жыл бұрын
@@UnrealSolver Thank you!
@whiteline34312 жыл бұрын
Thank you so much for this tutorial!
@Skynet_is_Watching_You Жыл бұрын
Is it possible to pull these windows out of the main game window?
@UnrealSolver Жыл бұрын
Can you specify what do you mean by that? 😅
@Skynet_is_Watching_You Жыл бұрын
@@UnrealSolver When you start the game, it is in a frame, is it possible to move elements outside the game frame?
@UnrealSolver Жыл бұрын
@@Skynet_is_Watching_You yes it is, but also it’s possible to restrict the windows so if you go near or behind the frame it will stick the window to the edge or corner. It’s done in the downloadable Project ;)
@Skynet_is_Watching_You Жыл бұрын
@@UnrealSolver Thank You for the reply
@Skynet_is_Watching_You Жыл бұрын
@@UnrealSolver When not in full screen mode, Can the widget go outside the main game window frame?, and stay on top of that frame (not disappear under main game window frame)
@보리타작-x9s2 жыл бұрын
Awesome Tutorials! Thanks You!
@UnrealSolver2 жыл бұрын
Thank you too Bro! 🍻
@ayoubtouaty82552 жыл бұрын
Great tutorial 😋....can you tell me how can i make a mobile Custom button position editor please i search it everywhere and found nothing soo can you show me how or even do a tutorial about it 🥺 pleeeeeeease
@UnrealSolver2 жыл бұрын
Thanks, appreciate that ;] What do you mean with “custom button position editor”? Specify a bit more and maybe I’ll be able to do it for ya ✌️
@ayoubtouaty82552 жыл бұрын
@@UnrealSolver in most mobile fps games like pubg mobile have a button editor where you can edit the position of the buttons and thier opacity to your needs just search pubg custom button editor and you will find it 🥲 aprichiate your reply
@arengnightcore52012 жыл бұрын
Thank you so mush , i did this a year ago and i was stuck so hard into this but i did alot of code more than this cause i wasnt familliar with BPs xD , can you also do the window drag will keep it moving(like the camera lag thing) and when it hits the edge of the screen it will get destroyed ? , i was stuck with this one and i never did it xD. edit: i used touch in my versions.
@UnrealSolver2 жыл бұрын
I don’t think I quite understand your question xD What should keep moving when dragging window? I can implement that and upload once you clarify the request ;] destroying is ez, that’s what I can do best 🤣
@arengnightcore52012 жыл бұрын
@@UnrealSolver the window when draging with high speed it should keep sliding and when it goes off screen it should destroy
@UnrealSolver2 жыл бұрын
@@arengnightcore5201 ohh, I got you You mean like swipe away to get rid of it, cool idea! 🔥
@arengnightcore52012 жыл бұрын
@@UnrealSolver ever managed to make that windows magic ?
@UnrealSolver2 жыл бұрын
@@arengnightcore5201 sadly not yet, now I am not even at home till tomorrow’s night and I have some other higher prio stuff to do first But I will take your ideas into some next videos about the widgets ;)
@murnoth Жыл бұрын
Awesome video, Thank you!
@UnrealSolver Жыл бұрын
Thank you too! Glad you enjoyed it :)
@ROSALIEIK Жыл бұрын
mine disappears....
@UnrealSolver Жыл бұрын
Then you’re doing something wrong ;) Either calculation or Anchor
@ROSALIEIK Жыл бұрын
@@UnrealSolver yep skipped a step my bad
@agj3832 жыл бұрын
consider making some links to these videos on the unreal forums. may help get some more eyes. this is high quality stuff
@UnrealSolver2 жыл бұрын
Thanks for suggestion and the compliment! ❤️🔥 I do post sometimes after releasing a video if it’s cool enough but mostly it’s getting forgotten and I don’t bump em up ;)
@GokdenizCetin Жыл бұрын
Awesome, subbed!
@UnrealSolver Жыл бұрын
Thank youuu! ❤️🔥
@JoeVonD2 жыл бұрын
This is fantastic!
@UnrealSolver2 жыл бұрын
Wow, thank you mate! I am glad you love it ❤️🔥
2 жыл бұрын
Can't wait for the part 2
@UnrealSolver2 жыл бұрын
You will see it soon 😎
2 жыл бұрын
@@UnrealSolver You remember me Fat dino UE4 Tutorials :D. You are awesome, man! Keep going and you will reach for the stars with your channel! Oh, and.. can I suggest 2 things in part two of this video? How about putting buttons to minimize the page, maximize and close?
2 жыл бұрын
@@UnrealSolver Hi, so... sorry to bother you but... I just downloaded the project with the tabs ready and I just wanted to clarify something... because when I minimize more than one tab it has a negative number in the toolbar tasks? (We still want part 2 of the project, it will be awesome to learn. ) And I found a lot of bugs. There is no safety zone for the bar not to turn upside down.
@UnrealSolver2 жыл бұрын
@ negative number = minimised window ;] I did it on purpose Yeah, there are a lot of bugs like scaling window to negative values, can be easily restricted To the text editor - that’s far away from being completed Small bugs will be repaired when I touch the project again xD If you have suggestions, ideas or bug reports - it’s highly appreciated to share your thoughts! Thanks bro! 🍻
@UnrealSolver2 жыл бұрын
I just got a video suggestion from your Channel and realised you wrote the comment stating who you are 😆 Now chillin and watching your Jetpack Joyride remake You’re awesome dude! 🔥🔥🔥🍻
@saffetdoga9313 Жыл бұрын
great work respect tx
@UnrealSolver Жыл бұрын
Thank you mate! ❤️🔥
@pushthebutton46025 ай бұрын
thank you for this info! 5 star *****
@ptilu21952 жыл бұрын
Impressive thanks!
@in2fractalout2 жыл бұрын
opa opa opa-pa. nice done
@UnrealSolver2 жыл бұрын
Thank you!
@BADASSSAMEE2 жыл бұрын
LEGEND
@yuanzeng9028 ай бұрын
thankyou
@pietpanzerpanzer53352 жыл бұрын
doesnt work lol
@UnrealSolver2 жыл бұрын
Glad you specified what is the issue, lol Also you can download the Project of mine, DL in Description
@pietpanzerpanzer53352 жыл бұрын
@@UnrealSolver Haha i dont know what the issue is, it is just warping around sometimes if i start clicking. But i would just ignore that for now lol