# Does the FastArray can be nested

**URL:** <https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [December 1, 2024, 9:24am UTC](https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039 "2024-12-01T09:24:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yazhuo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yazhuo/32/894946_2.png) [@Yazhuo](https://forums.unrealengine.com/u/Yazhuo)\
**Post date:** [December 1, 2024, 9:24am UTC](https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039/1 "2024-12-01T09:24:24Z")

</div>

Hi guys，I find that FastArray is fantastic，but there is a new question.  
As the title,can use FastArrry nested?  
Whether the ContainerA ，that inherit from FFastArraySerializer ，can used as a property for  
another FFastArraySerializerItem？

e.g.  
There are 4 struct:

```auto
USTRUCT()
struct FFastItemA : public FFastArraySerializerItem 
{
	GENERATED_BODY()
        ...Some Properties.
}

USTRUCT()
struct FFastContainerA: public FFastArraySerializer 
{
	GENERATED_BODY()
	
	UPROPERTY()
	TArray<FFastItemA > Items;
}

USTRUCT()
struct FFastItemB : public FFastArraySerializerItem 
{
	GENERATED_BODY()
        UPROPERTY（）
        FFastContainerA ContainerA;

        ...Some Properties.
}

USTRUCT()
struct FFastContainerB: public FFastArraySerializer 
{
	GENERATED_BODY()
	
	UPROPERTY()
	TArray<FFastItemB > Items;
}

```

Whether it can work well?

---

<div class="post-metadata">

**Author:** ![silnarm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silnarm/32/955303_2.png) [@silnarm](https://forums.unrealengine.com/u/silnarm)\
**Post date:** [December 1, 2024, 9:33am UTC](https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039/2 "2024-12-01T09:33:57Z")

</div>

Apparently not: [Can FFastNetArraySerializer be nested another USTRUCT? - #3 by Jambax](https://forums.unrealengine.com/t/can-ffastnetarrayserializer-be-nested-another-ustruct/148852/3)

But you could always test it, to be sure.

---

<div class="post-metadata">

**Author:** ![Yazhuo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yazhuo/32/894946_2.png) [@Yazhuo](https://forums.unrealengine.com/u/Yazhuo)\
**Post date:** [December 5, 2024, 12:56pm UTC](https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039/3 "2024-12-05T12:56:43Z")

</div>

Thanks a lot.  
I will try find others solution.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 4, 2025, 12:56pm UTC](https://forums.unrealengine.com/t/does-the-fastarray-can-be-nested/2161039/4 "2025-01-04T12:56:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
