diff --git a/yaml/ufunction.yml b/yaml/ufunction.yml index 7e4fe06..3441dc2 100644 --- a/yaml/ufunction.yml +++ b/yaml/ufunction.yml @@ -242,11 +242,13 @@ specifiers: utility: 2 position: main comment: | - Causes a `UFUNCTION` with _no parameters_ and _no return value_ to be shown in the details panel of **object instances**. + Allows a `UFUNCTION` to be callable via editor C++ or editor utility blueprint code. + + If the `UFUNCTION` has _no parameters_ and _no return value_, it will be shown as a button in the details panel of **object instances**. Could be useful for adding helper functions to change the values on the selected instance. For example increasing the level of an enemy by changing their stats, or filling out default values using C++. - - To reiterate, only works with functions that have no parameters, and return `void`. `BlueprintCallable` is not required. Only works on instances of the class. So Actors placed in a level or data assets, **not on Blueprint classes**. + + To reiterate, only functions that have no parameters, and return `void` will be shown as a button in the details panel. `BlueprintCallable` is not required. Only works on instances of the class. So Actors placed in a level or data assets, **not on Blueprint classes**. This works as a flag in the main position, or as a boolean in the meta position. I would stick to the Main position just because there are more examples of this in the Unreal codebase. samples: