From 389dc86e00388d9cac7274bba8b9ca0216ad5bdb Mon Sep 17 00:00:00 2001 From: William Lahti Date: Sun, 6 Apr 2025 23:07:54 -0700 Subject: [PATCH 1/2] clarify limitations of ForceAsFunction, add sample --- yaml/ufunction.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/yaml/ufunction.yml b/yaml/ufunction.yml index 7e4fe06..eaa58e4 100644 --- a/yaml/ufunction.yml +++ b/yaml/ufunction.yml @@ -38,8 +38,15 @@ specifiers: type: flag position: meta version: ">= 5.1" - comment: Allows users to change a BlueprintImplementableEvent with no return value from an event into a function. - required: [ BlueprintImplementableEvent ] + comment: | + Can be applied to BlueprintImplementableEvent or BlueprintNative functions which have no return value to cause + the editor to create a function instead of an event when using the Override feature of the Blueprint editor. + Despite the name, this does not prevent you from using "Convert function to event" after creating the override. + samples: + - | + UFUNCTION(BlueprintImplementableEvent, meta=(ForceAsFunction)) + void PreferFunction(); + required: [ BlueprintImplementableEvent, BlueprintNativeEvent ] links: - [ "Changelist", "https://github.com/EpicGames/UnrealEngine/commit/8942fcd50bf1cb828ccbb9cfd84ee2619f020fce" ] From a18aa5aaea2facf61c65c9a98b1e7aa022acbead Mon Sep 17 00:00:00 2001 From: William Lahti Date: Sun, 6 Apr 2025 23:14:35 -0700 Subject: [PATCH 2/2] fix: typo BlueprintNative -> BlueprintNativeEvent --- yaml/ufunction.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/ufunction.yml b/yaml/ufunction.yml index eaa58e4..f113e6d 100644 --- a/yaml/ufunction.yml +++ b/yaml/ufunction.yml @@ -39,7 +39,7 @@ specifiers: position: meta version: ">= 5.1" comment: | - Can be applied to BlueprintImplementableEvent or BlueprintNative functions which have no return value to cause + Can be applied to BlueprintImplementableEvent or BlueprintNativeEvent functions which have no return value to cause the editor to create a function instead of an event when using the Override feature of the Blueprint editor. Despite the name, this does not prevent you from using "Convert function to event" after creating the override. samples: