Hello,
I’m writting some code in a class that inherits from ActorComponent. The idea is to make a helper. I’ve a some public function which are BlueprintCallable or BlueprintPure, but I can’t access them from my blueprint. This is my code:
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class TESTUE_API UVRHelper : public UActorComponent
{
GENERATED_BODY()
public:
UVRHelper();
protected:
virtual void BeginPlay() override;
public:
UFUNCTION(BlueprintPure, Category=“VRHelper”)
FString GetDriverName();
UFUNCTION(BlueprintPure, Category="VRHelper")
int GetHandness();
UFUNCTION(BlueprintPure, Category="VRHelper")
bool IsHandConnected(bool left);
UFUNCTION(BlueprintCallable, Category="VRHelper")
void Recenter();
};
I’ve created a Blueprint that inherits from Pawn and then attached a VRHelper ActorComponent (this code so) on it. I want to call one of those functions but it doesn’t work.
Do you know why? I’m pretty new to C++ in Unreal, I probably made a mistake.
Thanks!