# How to create a class that shows members in TArray

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-class-that-shows-members-in-tarray/450727>\
**Category:** Blueprint\
**Tags:** tarray:-arrays-in-un, unreal-engine, editor, Blueprint, CPP, question\
**Created:** [June 15, 2019, 11:07am UTC](https://forums.unrealengine.com/t/how-to-create-a-class-that-shows-members-in-tarray/450727 "2019-06-15T11:07:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plato.manchi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plato.manchi/32/881681_2.png) [@plato.manchi](https://forums.unrealengine.com/u/plato.manchi)\
**Post date:** [June 15, 2019, 11:07am UTC](https://forums.unrealengine.com/t/how-to-create-a-class-that-shows-members-in-tarray/450727/1 "2019-06-15T11:07:44Z")

</div>

Is it possible to create a class where if i create a TArray of it can show its members like shown in the pic below?  
I haven’t done any editor scripting so if I have to write editor script then I might give up and use existing features, but if its possible out of box I would like to know how this can be done.

Thanks in advance 🙂

![279877-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/8/f5883b58ece44f2e944d3c52d161b7f7c31fd165.png)

---

<div class="post-metadata">

**Author:** ![XanderWraik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XanderWraik](https://forums.unrealengine.com/u/XanderWraik)\
**Post date:** [June 15, 2019, 4:23pm UTC](https://forums.unrealengine.com/t/how-to-create-a-class-that-shows-members-in-tarray/450727/2 "2019-06-15T16:23:50Z")

</div>

If you want it similar to what’s done in the image, you can try the following:

```
 //Struct
 USTRUCT(BlueprintType)
 struct FTestStruct
 {
     UPROPERTY(EditAnwhere, BlueprintReadWrite)
     FName Test1;

     UPROPERTY(EditAnwhere, BlueprintReadWrite)
     FName Test2;
}

//... In your actor class or anywhere else
  UPROPERTY(EditAnywhere, BlueprintReadWrite)
  TArray<FTestStruct> TestArray;
```

---

<div class="post-metadata">

**Author:** ![plato.manchi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plato.manchi/32/881681_2.png) [@plato.manchi](https://forums.unrealengine.com/u/plato.manchi)\
**Post date:** [June 15, 2019, 9:56pm UTC](https://forums.unrealengine.com/t/how-to-create-a-class-that-shows-members-in-tarray/450727/3 "2019-06-15T21:56:54Z")

</div>

It works!!! If anyone tried it and didn’t work, I had to restart editor for the fields to show up.

You are a hero. Thanks 🙂
