@lenny said:
But how do I send a value to the c function and then get a value back from that?
I haven't spent much time on GDNative yet, but my naive understanding is that passing parameter to the GDNative-provided method would cause them to show up via the native-side parameters named p_num_args
and p_args
in the C example. Have you tried checking to see what you get there when passing value in?