C++ FunctionLibrary error in Blueprint
I just got a problem with a FunctionLibrary. This is the fist time I tried create a new one and I'm new to programming in general so I'm going to describe exactly what I did:
1: I went to File > Add Code to Project and choose Blueprint Function Library.
2: I added the following code to the library:
The node can now be used in a Blueprint. But when I try to compile I get an Error:
I have found the Code for the Function in the Internet but it was only the C++ part. So I tried to do the rest on my own.
I'm a little confused now. Maybe you can tell me, what I have done wrong.
asked Apr 08 '15 at 02:25 PM in C++ Programming
"Target" should pin points to object on which the function is called on, it is required to plug somthing to it or else VM won't know to which object call a function. If you want to create function not realted to object of this class you need to create static function, you only need to add "static" to function decleration in header file:
This way Target pin will disapper and you won't need to deliver any object
answered Apr 08 '15 at 02:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here