// Fill out your copyright notice in the Description page of Project Settings.
#include "Engine.h"
#include "Engine/StaticMeshActor.h"
#include "FloatingActor.generated.h"
UCLASS()
class MYPROJECT_API AFloatingActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AFloatingActor(const FObjectInitializer& objectInitializer);
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
float RunningTime;
FVector Position;
private:
USphereComponent *collision;
};
This is my super basic code, it really does nothing special and is not what important here. If i, let’s say, delete line 4 (which is empty) i get errors. I know it makes no sense and i’ve never experienced this before but how can i sort this out?
Like in UCLASS() i get “This declaration has no storage class or type identifier”