Static assertion failed with "Unknown access specifier for GENERATED_BODY() macro in class"

Hello all! I am writing a plugin and I have a problem. My plugin consists of two modules: a runtime module and an editor module. The project has been building correctly up until today when I started working on the Runtime module and added a UCLASS object to it. Every time I build, I get this error:


Static assertion failed with "Unknown access specifier for GENERATED_BODY() macro in class"

This is my code:


#pragma once

#include "InputMap.generated.h"

UCLASS()
class UInputMap : public UObject
{
	GENERATED_BODY()
};

I have no idea what is causing it. I’ve been trying to solve it forever. Any help? :slight_smile: