Can't call function library's function in macro library?
In UE 4.8, I have written some functions in function library, and some macros in macro library which inherited from UObject, and it worked well, I could get the right function from 'right click filter menu' no matter whether 'context sensitive' was checked. In UE 4.9, I can't find the function name from 'right click filter menu' any more. Is that no supported?
So, I make a experiment. I move macros to another macro library which inherit from AActor, I get the right function again! I noticed that in UE 4.9, when I call functions that in function library, there’s always a WorldContextObject pin at the last parameter even for the very simple function that not refer to the WorldContextObject. But UE 4.8 do not have this problem. Is this the new restriction or feather in UE 4.9? Can't I call function in function library from UObject inherited macro library any more？
Another problem is when I call a function that refer to a WorldContextObject, of course in AActor inherited macro library, I get an error when engine cook contents for windows, says:'this blueprint (self) is not a 'XXXFunctionLibrary', therefore 'Target' must have a connection.' For the function that not refer to WorldContextObject, it works well. This problem confuse me that AActor macro library should have a WorldContextObject itself, and the function I called belongs to a function library, does it need a self Target? why it always through the error?
I was able to reproduce both issues that you've described. The World Context pin does not appear to affect the function being called and still compiles successfully, however it has been bugged (UE-22910). The Function Library/Macro Library issue was also bugged (UE-22946) for investigation.
answered Nov 04 '15 at 03:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here