i am watching tutorials for a couple of days now, but i can not understand how the programming with c++ in Unreal really works ^^ (Very confusing with header and source file and the whole Ustuff in there).
I have previously used the Unity engine where it is very simple (i am able to develop a complete game) but unreal engine is so much different.
If i search for some sampels i only found someone who is modify some existing content, but i want to learn it from scratch to understand it better how it works.
Can someone give me a sample for spawning a Gameobject like a cube and control the cube with the WSAD keys in c++ ?
I didnt found anything like this.
In Unity this is very simple i only need to define a Transform using a command “instantiate” and then use if sentence for keyinput,
if one sentence gets true i can use thespawnedobject.translate(vector3) in this if-sentence.
Thank you very much for your help .