BpFunctionLibrary Add Actor Component to Target
Hello UE community. Probably noob question, that was already discussed, but I'm done googling and trying/compiling on slow laptop. So, hoping for your help. Thanks in advance! So, I want Blueprint Function Library, actually containing only 1 function, to add Actor Components (not Scene Components) to Target's Actor. But when I call this function UE just crashes. So, what am I doing wrong? Thanks!
asked Feb 28 '16 at 03:37 PM in C++ Programming
As a rule of thumb you should always check for pointers to be valid. At the start of the function I would do something like this:
I would also check for valid reference after calling NewObject, so:
answered Feb 28 '16 at 03:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here