This will be a good watch. always good to see how other people do things. I have a question for you mate, from one game dev to another. do you know how to make a widget buttons "on clicked/on pressed" work with right mouse click and not just left? I cant work it out, i end up using an image as a button and overriding a function, but then i loose some of the standard things that come with a button like "on hovered" etc.. how do you tackle this? for an example: iv been trying to make a button that when left click it decreases an amount and when right clicked it increases an amount, i can do it with an image or anything else but just not a button lol. Regards. Bishop.
Hi, Thanks for the comment. You questions about how to use the right mouse button and not the left to interact with the UI actually stumped me. I have no idea how to do this :) I might try and do some experiments and see if I can figure it out and I'll let you know. Its a really interesting case
thank you, if you make a button (with no functionality) and left click it, the button will as default "click/change colour". now here is the thing.. it will also do it with right mouse click.. so unreal engine as default detects right mouse button on clicked but doesn't give us a way to use it. @@gisli
Just what I need. But I set this up, hit play, I have it set to a key stroke press and when I hit the key (R) it disappears, ideas?! I even set the distance to 0 and it disappears. Would love some guidance. Thanks.
I was using the First Person Example to test, and as soon as I hit the key it would actually send it under the ground as the ground level Z is 190 and the cube would go under the ground geometry and go to 0. So I set the Z location in SetActorLocation to 190. Question now is how can I just add movement to wherever the cube is to begin with? without it going to 0 and without having to SetActorLocation to 190.
The trick there is you want to first (in the tick function). call "GetActorLocation) which will give you the 3D position of your cube. Then its just a matter of adding ( + ) some value, for example (1,0,0) to the current actor location. Then lastly, you call "SetActorLocation" with the result of your add function Hope this makes sense :D
If i do this in UE 5.4 my actor or mesh dissapears when i play the level. But i get the correct coordinate output from the actor as string. So the moving works. Anybody knows why the objects get invisible when moved?
There is a chance that your object is moving too fast and it disappears out of view. There is a pause button that you can press, and go to the outliner (list of actors in the scene). So when you play the game you could find the actor that disappears in the outliner and look at the location. Maybe the location is a very high number which means you are moving too fast
@@nawhz6292 thats true, the idea was that this was the absolute most simple way to move an actor for beginners. All of the methods that you mentioned are definitely valid, but I as a beginner you often need to understand that before you move on to the more detailed concepts like you mentioned. I'll hopefully be able to do a more in depth tutorial on movement in the future! Really appreciate your feedback!
@@nawhz6292 I disagree, simple does not mean the fastest, it just means that it assumes little to no prior knowledge. Sounds like you might have been looking for the quickest way to learn movement in unreal engine
This is exactly what I was looking for. Thanks.
Glad to hear it!
Thanks a ton!! Love the easy walkthrough!!!
Glad it helped!
This will be a good watch. always good to see how other people do things. I have a question for you mate, from one game dev to another. do you know how to make a widget buttons "on clicked/on pressed" work with right mouse click and not just left? I cant work it out, i end up using an image as a button and overriding a function, but then i loose some of the standard things that come with a button like "on hovered" etc.. how do you tackle this? for an example: iv been trying to make a button that when left click it decreases an amount and when right clicked it increases an amount, i can do it with an image or anything else but just not a button lol.
Regards.
Bishop.
Hi,
Thanks for the comment. You questions about how to use the right mouse button and not the left to interact with the UI actually stumped me. I have no idea how to do this :)
I might try and do some experiments and see if I can figure it out and I'll let you know. Its a really interesting case
thank you, if you make a button (with no functionality) and left click it, the button will as default "click/change colour". now here is the thing.. it will also do it with right mouse click.. so unreal engine as default detects right mouse button on clicked but doesn't give us a way to use it. @@gisli
is this going to be affected by frame rate?
great video
Thanks! I really appreciate it!
Just what I need. But I set this up, hit play, I have it set to a key stroke press and when I hit the key (R) it disappears, ideas?! I even set the distance to 0 and it disappears. Would love some guidance. Thanks.
I was using the First Person Example to test, and as soon as I hit the key it would actually send it under the ground as the ground level Z is 190 and the cube would go under the ground geometry and go to 0. So I set the Z location in SetActorLocation to 190.
Question now is how can I just add movement to wherever the cube is to begin with? without it going to 0 and without having to SetActorLocation to 190.
The trick there is you want to first (in the tick function). call "GetActorLocation) which will give you the 3D position of your cube.
Then its just a matter of adding ( + ) some value, for example (1,0,0) to the current actor location. Then lastly, you call "SetActorLocation" with the result of your add function
Hope this makes sense :D
If i do this in UE 5.4 my actor or mesh dissapears when i play the level. But i get the correct coordinate output from the actor as string. So the moving works. Anybody knows why the objects get invisible when moved?
There is a chance that your object is moving too fast and it disappears out of view. There is a pause button that you can press, and go to the outliner (list of actors in the scene). So when you play the game you could find the actor that disappears in the outliner and look at the location. Maybe the location is a very high number which means you are moving too fast
not good
Sorry to hear that! What do you suggest to be better?
@@gisli you didnt mention the MoveComponentTo, Finterpto, and Rinterpto nodes.
@@nawhz6292 thats true, the idea was that this was the absolute most simple way to move an actor for beginners. All of the methods that you mentioned are definitely valid, but I as a beginner you often need to understand that before you move on to the more detailed concepts like you mentioned.
I'll hopefully be able to do a more in depth tutorial on movement in the future!
Really appreciate your feedback!
@@gisli 16 minutes video != Most simple.
@@nawhz6292 I disagree, simple does not mean the fastest, it just means that it assumes little to no prior knowledge. Sounds like you might have been looking for the quickest way to learn movement in unreal engine