Last active
January 1, 2026 23:19
-
-
Save Lokno/7c464c47f6db62a051eb2c5a1827eae7 to your computer and use it in GitHub Desktop.
Expose the existing LevenshteinDistance code to blueprints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "CoreMinimal.h" | |
| #include "Kismet/BlueprintFunctionLibrary.h" | |
| #include "BlueprintLibraryLD.generated.h" | |
| UCLASS() | |
| class YOURPROJECT_API UBlueprintLibraryLD : public UBlueprintFunctionLibrary | |
| { | |
| GENERATED_BODY() | |
| public: | |
| // Uses UE's templated Algo::LevenshteinDistance | |
| UFUNCTION(BlueprintCallable, Category="MyFunctions") | |
| static int32 LevenshteinDistance(const FString& A, const FString& B); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment