Get rid of lxTangibleInterface

This commit is contained in:
2024-09-24 22:56:49 -04:00
parent a295ff5e53
commit 1f1f383da0
7 changed files with 36 additions and 41 deletions

View File

@@ -22,7 +22,10 @@ void UlxUtilityLibrary::CallFunctionByName(UObject *object, const FString &namep
FBlueprintCoreDelegates::ThrowScriptException(FFrame::GetThreadLocalTopStackFrame()->Object, *FFrame::GetThreadLocalTopStackFrame(), ExceptionInfo);
return;
}
UFunction* function = object->FindFunction(FName(*fullname));
// UFunction* function = object->FindFunction(FName(*fullname));
UClass *uclass = object->GetClass();
UFunction* function = uclass->FindFunctionByName(FName(*fullname));
if (function == nullptr) {
function = object->FindFunction(FName(*fallback));
if (function == nullptr) {