Can I FORCEINLINE a replicated function?
Is it possible to do FORCEINLINE with a replicated function? It would really save some space in my .cpp file.
asked Jun 16 '15 at 06:20 PM in C++ Programming
RPC function must be UFUNCTION, but we don't need define exactly same function, but we implement _Implementation and _Validate instead, which we can make FORCEINLINE. Next code works for me just fine:
answered Jan 27 '16 at 02:26 PM
In order for a function to be replicated, it needs to be a UFunction, and in order to be a UFunction, it must not be FORCEINLINE or FORCENOINLINE and a couple of other things
Try using macros or a non-UFunction library
Inline and force inline should cause you build errors as the UClass should fail to be referenced externally. You can have a ufunction that calls the forced inline version
answered Apr 19 '18 at 04:00 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here