PluginMobileNativeCode icon indicating copy to clipboard operation
PluginMobileNativeCode copied to clipboard

UE5 Compatibility?

Open jg33 opened this issue 3 years ago • 3 comments

Hi- I'm trying to implement this plugin on a UE5 project. I was able to get it working by adding the following to the top of the build script: #if UE_5_0_OR_LATER using EpicGames.Core; #else using Tools.DotNETCommon; #endif

However, I'm getting some issues when I build. Compiling is fine, and I can add new functions that appear in BPs, but when I try to build for iOS, it seems to be trying to compile my new .mm file as c++. It's throwing a bunch of syntax errors. Do I need to do anything special to make it treat the code like obj-c? Is it a UE5 thing? It seems to build all of the example .mm ok.

Thanks!

jg33 avatar Jul 05 '22 19:07 jg33

hello, where you add this string "#if UE_5_0_OR_LATER using EpicGames.Core; #else using Tools.DotNETCommon; #endif"?

antonmikhet avatar Nov 15 '22 08:11 antonmikhet

its been a while, but I believe I replaced this line:

jg33 avatar Nov 15 '22 17:11 jg33

thanks

antonmikhet avatar Nov 16 '22 10:11 antonmikhet