Haxe-UnrealEngine5 icon indicating copy to clipboard operation
Haxe-UnrealEngine5 copied to clipboard

FString -> String

Open peteshand opened this issue 3 years ago • 2 comments

Is it currently possible to convert an FString to a haxe String? I'm trying to pass a String from a blueprint to a Haxe function, however can't workout how to convert the FString (Int and bool work)

peteshand avatar Oct 07 '22 11:10 peteshand

Not at the moment, want to make sure all the basic stuff is working before writing the manual bindings. Maybe use the ue_helpers.FStringHX class? It's a class that has all the String methods but compiles into FString. Otherwise, I should have them done soon! :D

SomeRanDev avatar Oct 08 '22 03:10 SomeRanDev

Whoops, sorry for recommending the FStringHX class before testing. It should work now, and I added a fromString method to convert from Haxe String into this FString class. Hopefully I'll get around to making actual FString bindings soon enough. 👌

SomeRanDev avatar Oct 08 '22 12:10 SomeRanDev