The meaing of *_API in class declaration

Hi.

What does the CLASSES1_API means in a code like this:

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "GameFramework/Actor.h"
#include "Pickup.generated.h"

UCLASS()
class CLASSES1_API APickup : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	APickup();

	// Called when the game starts or when spawned
	virtual void BeginPlay() override;
	
	// Called every frame
	virtual void Tick( float DeltaSeconds ) override;

	
	
};

What is it for? Is it necessary?

1 Like

I’ve found an answer to my question here: What does COREUOBJECT_API & ENGINE_API macro? - C++ - Unreal Engine Forums

1 Like