# Do List\<T\> and queue\<T\> exist in blueprints?

**URL:** <https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734>\
**Category:** Blueprint\
**Tags:** data, unreal-engine, Blueprint, question\
**Created:** [November 13, 2023, 7:43am UTC](https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734 "2023-11-13T07:43:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manusoka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manusoka/32/757572_2.png) [@Manusoka](https://forums.unrealengine.com/u/Manusoka)\
**Post date:** [November 13, 2023, 7:43am UTC](https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734/1 "2023-11-13T07:43:17Z")

</div>

Maybe it has another name, but I am struggling to find the equivalent in blueprints.  
I come from Unity and I am used to manage Lists and Queues to manage classes or variables (like an enemy pool or the steps of a Simon-like Game).

Please, comment if you know something about it. Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [November 13, 2023, 3:11pm UTC](https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734/2 "2023-11-13T15:11:36Z")

</div>

You already have template variants of queue called TQueue and Lists in unreal are called TList. Both are abstract classes that are templated and can hold specific classes.

You can define for instance `TQueue<AActor*> actorQueue;`

From what I know they are not exposed to blueprints though (will cause a compile error). You would have to keep this portion of the code in c++.  
You can expose TArrays though.

You can also leverage TSubclassOf in TArrays  
example

```auto
TArray<TSubclassOf<ACharacter*>> MyCharacters

```

MyCharactersArray can contain all classes that derive from ACharacter (and ACharacter implementations too)

To have a larger mixed List you can pass in UObject that is the basis for nearly all instatiable classes.

---

<div class="post-metadata">

**Author:** ![Manusoka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manusoka/32/757572_2.png) [@Manusoka](https://forums.unrealengine.com/u/Manusoka)\
**Post date:** [November 13, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734/3 "2023-11-13T15:30:37Z")

</div>

Didn’t want to get into C++, but I guess I’ll have to.  
Thanks for the quick and clear answer

---

<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:** [December 13, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/do-list-t-and-queue-t-exist-in-blueprints/1386734/4 "2023-12-13T15:30:53Z")

</div>

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