Hello guys I’m facing a little problem and I need help.
With the 4.8 we can define multiples classes in 1 header, but can we make nested classes?
I’ve tried multiples workaround without success.
For example I’ve this:
UCLASS()
class FPS4_8_API AActorTest : public AActor
{
GENERATED_BODY()
private:
UCLASS(Abstract)
class UObjTemplate : public UObject
{
GENERATED_BODY()
public:
UObjTemplate();
virtual void Hello() PURE_VIRTUAL(UObjTemplate::Hello, );
};
UCLASS()
class UObjConcret : public UObjTemplate
{
GENERATED_BODY()
public:
UObjConcret();
void Hello();
};
public:
// Sets default values for this actor's properties
AActorTest();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
};
but the code don’t compile.
Is there any workarounds ?
Is it possible to create nested classes ?
Thanks for help.
gamer08