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

Automatically attach @:ueExport to all class methods that override "virtual" functions from UE externs

Open SomeRanDev opened this issue 3 years ago • 1 comments

  • [ ] Mark specific functions with metadata to register as "virtual" in ue externs (are any UFUNCTIONS virtual? maybe provide option to disable this for "pure" externs)
  • [x] Add the feature to the UEMetadata.hx file

SomeRanDev avatar Oct 04 '22 07:10 SomeRanDev

Added feature so export occurs based on whether the override comes from an extern class. Haxe should be able to do all the type checking to ensure it matches the super class and all. Not sure how important it is to only mark virtual, can only imagine overriding a non-virtual class would be very rare, so maybe not worth the effort. Not to mention not sure how to check for virtuals atm since it not in UFunction or EFunctionFlags??? So guess I'll see.

SomeRanDev avatar Oct 04 '22 12:10 SomeRanDev