Download

/How to solve need for nested Structs?? (Struct with circular dependency)

Hi I have found out the hard way that UE4 blocks you from creating a circular dependency between your structs.

I am wondering if there is a way I can get the same functionality from a nested struct by using different ue4/c++ objects.

Thanks :slight_smile:

@radman55 You can’t make nested or recursive structures. The only way ( I know of ) to do it, is the make blueprints which contain the info in variables ( can be structs ), and setup references between these BPs. You spawn them into the world, but nobody every sees them because they don’t have any meshes etc…

@ClockworkOcean ahhhhhh I see I thought about that but felt like a heavy work around. I ended up changing the design to not need recursive structs because it worked better without it but I will try the bp thing if I ever run into it again :slight_smile:
Thanks bro