Okay. Maybe my tutorial is outdated. Is this likely? I’ll post my class anyway.
Here:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "PowerUp.generated.h"
UCLASS()
class MYPROJECT6_API APowerUp : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
APowerUp();
UPROPERTY(EditDefaultsOnly, VisibleDefaultsOnly, Catagory = PowerUp);
TSubobjectPtr<USphereComponent> TouchSphere;
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
};
Any problems stand out?