Beginner Question

Hi everyone this is my first post in here and I hope it won’t be the last.

I’m very new with the UE4 and I have a problem with second line;

UPROPERTY(VisibleAnywhere, BlueprintCallable)

virtual void Tick(float DeltaSeconds) override;

I’ve tried with and without override but the compiler gave the same error which is;

Unrecognized type ‘virtual’ - type must be a UCLASS, USTRUCT or UENUM and

Please verify that you have sufficient rights to run this command.

Thanks for the answers.

Hey -

The issue here is the UPROPERTY line. Since the following line is a function, you would instead want to use UFUNCTION() with its own specifiers ( Function Specifiers | Unreal Engine 5.1 Documentation ). That being said, BeginPlay() and Tick() do not need to be defined as UFUNCTION manually. You should be able to remove the UPROPERTY line above and compile successfully.

Cheers

Thanks for the answer now its working.