Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.20
more ▼

asked Jan 07 '19 at 07:42 AM in Using UE4

avatar image

15 1 3 7

avatar image mightyenigma Jan 07 '19 at 04:26 PM

Have you installed Visual Studio with C++ module yet?

avatar image KOCGI Jan 09 '19 at 10:14 PM

Thanks, yeah I have all modules installed already.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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:


more ▼

answered Jan 07 '19 at 08:03 AM

avatar image

35.2k 921 166 1098

avatar image KOCGI Jan 09 '19 at 10:13 PM

Thank you very much, I got it now.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question