Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | RastaJoe94 |
Hello,
I’m working on a GDNative script and want to give the c function a string as parameter, do some calculations and then return a string back to godot. I can use godot_variant_as_string(p_args[0]) to get the first argument as a godot_string, but how do i convert it to a char* usable in c? I saw someone else in a discussion here, who used godot_string_c_str(), but I think this function does not exist anymore (post was from 2017). Does someone know how to use the godot_string in c?