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?
@gisli3 ай бұрын
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
@mrh89842 ай бұрын
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.
@mrh89842 ай бұрын
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.
@gisliАй бұрын
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
@natn8r124Ай бұрын
Thanks a ton!! Love the easy walkthrough!!!
@gisliАй бұрын
Glad it helped!
@struggling3dartist91021 күн бұрын
is this going to be affected by frame rate?
@cursedbishstudio10 ай бұрын
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.
@gisli10 ай бұрын
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
@cursedbishstudio10 ай бұрын
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
@lucasamaro88603 ай бұрын
great video
@gisli3 ай бұрын
Thanks! I really appreciate it!
@nawhz62924 ай бұрын
not good
@gisli4 ай бұрын
Sorry to hear that! What do you suggest to be better?
@nawhz62924 ай бұрын
@@gisli you didnt mention the MoveComponentTo, Finterpto, and Rinterpto nodes.
@gisli4 ай бұрын
@@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!
@nawhz62924 ай бұрын
@@gisli 16 minutes video != Most simple.
@gisli4 ай бұрын
@@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