unrealgame4/Source/ThirdPerson/Public/BallActor.h

38 lines
847 B
C++

// All content (c) Shaun Reed 2021, all rights reserved
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "BallActor.generated.h"
UCLASS()
class THIRDPERSON_API ABallActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ABallActor();
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float sizeScale = 1.0;
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
class USphereComponent* SphereComp;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UStaticMeshComponent* StaticMeshComp;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
class UParticleSystemComponent* ParticleComp;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
};