I’m working on a Leap Motion project where as much game logic as possible is being kept in C++. The documentation on github implies that the same setup logic in blueprint should be applicable in C++, but I’ve hit several stumbling blocks trying to do so. I’d just like to check that I’m not missing anything obvious in my approach.
First off, when using the in engine plugin included with 4.12.5, trying to access any of the functions of the classes in the AnimBody folder results in LNK2019 errors. After some digging, I realized this was because said classes were all missing the LEAPMOTION_API specifier. Adding the specifier back in resolved the LNK2019 errors, but I’ve had problems instantiating them in C++. I’ve tried CreateDefaultSubobject and NewObject to make AnimHand objects, but the internal AnimFingers/AnimBones always end up null. Is this set of classes just not setup to work in C++? Or am I doing something wrong?
Also, I wanted to make use of the LeapEventInterface, but they’re all specified as BlueprintImplementableEvents. This means I can’t directly inherit the class and provide a C++ implementation, correct? Or am I missing something?