C++ and Unreal Engine? 3 Years and never found out how that should work (I know the C++ language)
I would have not a single problem if unreal would just provide an easy way to use C++ Codeing ;( In Unity it took me 2 minutes to find out how to attach a C# script to an actor.
All I want is to be able to control my actors with C++.
Please help me, please tell me how to make use of C++ in unreal
Ok let me give you a hint. I assume you got Blueprint expirance... that means you already know C++ APIs you simple probably not aware of it ^^ First of all UE4 is different from Unity, unlike unity where you place empty object and then the component with code (but UE4 allows to add component classes to actors), object are of specific class which contain the code. You should be already aware of that if you use blueprints, blueprint is a class of actor you spawn in the world. Content browser might confuse oyu on that matter, go see Class Viewer in Window->Devlopent Tools->Class Viewer, which let you see all classes in form of relation tree, it should open you eyes more.
Next ther APIs.... as i said you should be already aware of them, majority of nodes (about 90% of them) are pure bindings of C++ functions (all with f icon), the Target pin is a object you calling function on. UE4 even let you go to header file where C++ function of node is delivered, when oyu right click them. The names of them should be the same just remove spaces from node name. Also look on API reference which contain list of all functions:
I also recommend to watch my old video explaing classes and object:
I also recenly make C++ from 0 series, but it really goes deep, but it might be really helpful for you:
answered Jan 07 '19 at 08:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here