Struct creation error

Hello,

Already, I want to say I’m French, so sorry if my english isn’t very good.

I’ve made a struct, but when I compile, there are errors.

.h

// Struct for the map :
	USTRUCT()
	struct FMapArrayX {
		GENERATED_USTRUCT_BODY()

		UPROPERTY()
			TArray<AActor*> x;

		FMapArrayX() {}

	};
	USTRUCT()
	struct FMapArray {
		GENERATED_USTRUCT_BODY()

		UPROPERTY()
			TArray<FMapArrayX> y;

		FMapArray() {}
	};

and errors : Struct Errors - Pastebin.com

Thanks,

Hey -

I copied your structs into a new project and was able to compile successfully. Would it be possible for you to try using the structs in a new project and let me know how that works for you? Additionally, you may want to try removing your Intermediate folder and then rebuild the project. It will take longer to build but since it has to rebuild everything it should build the structs properly as well.

Cheers

Thank you for your help but the problem was that I had declared my structs in a class but she should be declared outside the class…