Why are BlueprintGetter not visible?

DevKaiUnreal
Sat, 11 Jun 2022 09:47:21 +0000
C++

Hi,

I tried to implement BlueprintGetter in UHealthComponent : public UActorComponent, but I am not able to call it from the Blueprint (see Screenshot):

I also tried closing and re-opening, clean re-built and directly in an ACharacter-derived class instead of a UActorComponent . Unfortunately without success.

According to this site https://unreal.gg-labs.com/quick-reference/the-ufunction-macro:

BlueprintGetter
This function will be used as the accessor for a Blueprint-exposed property. This specifier implies BlueprintPure and BlueprintCallable.

I’d really like to follow encapsulation principles (instead of AllowPrivateAccess). Am I missing something or might that be a bug?

Thanks!

7 posts - 3 participants