I am watching the intro to programming with the pizza pickup, and I made a similar system, but when I add the rotationRate variable it generates 11 errors, no instance of constructor “FReadSurfaceDataFlags::FSurfaceDataFlags” matches the argument list, twice and then another one with UParticleModuleEventSendToGame, even though I never edited anything but my own class. Code:
#pragma once
#include "GameFramework/Actor.h"
#include "BasicPickup.generated.h"
/**
*
*/
//Took MYPROJECT_API out before class name and after class keyword.
UCLASS()
class ABasicPickup : public AActor
{
GENERATED_UCLASS_BODY()
UPROPERTY(VisibleDefaultsOnly, Category = Pickup)
TSubobjectPtr<USphereComponent> touchSphere;
//If I remove this UPROPERTY, it works fine.
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = Pickup)
float rotationRate;
virtual void Tick(float deltaTime) override;
};