I have created som c++ classes and now i want to put all of this in a plugin.
Now i struggle in recreating my ustructs for the plugin.
To define my plugins i normaly create a new c++ class over the wizard choosing none parent class.
then i delete the .cpp file and change the .h file to:
#pragma once
#include "MyClass.generated.h"
/**
*
*/
USTRUCT(BlueprintType)
struct FMyClass
{
GENERATED_BODY()
public:
};
wich works fine but when i try to declare my new class and change the target module to the plugin
it dosent work.
when hot reload in the editor it compiles but ignores this file completly when i compile it in visual studio it dosent recognize the .generated.h file (even tho that i can open and look into this file)
and so has problems with the macro USTRUCT and everything below. the compiler says syntaxerror in
Thanks in advance
kind regards
sascha