# Struct Array populated in defaults is empty on device

**URL:** <https://forums.unrealengine.com/t/struct-array-populated-in-defaults-is-empty-on-device/304094>\
**Category:** Mobile\
**Tags:** Struct, empty, Mobile, unreal-engine, Array, question\
**Created:** [January 15, 2015, 9:55pm UTC](https://forums.unrealengine.com/t/struct-array-populated-in-defaults-is-empty-on-device/304094 "2015-01-15T21:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannRees](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DannRees](https://forums.unrealengine.com/u/DannRees)\
**Post date:** [January 15, 2015, 9:55pm UTC](https://forums.unrealengine.com/t/struct-array-populated-in-defaults-is-empty-on-device/304094/1 "2015-01-15T21:55:43Z")

</div>

Hello,

I have a struct array on my character

```
UPROPERTY(EditAnywhere)
	TArray<struct FSlotsAtDistance> AttackSlotDistances;

```

I populate the array in my blueprint defaults. All works well in the editor and mobile preview. However when I run the game on my device (Galaxy S5). The array is empty?

```
UE_LOG(LogElemental, Log, TEXT(" SlotDistances: %d"),Owner->AttackSlotDistances.Num());

```

Returns 3 in the editor, and mobile preview but 0 on the device.

Can’t for the life of my figure out why? What makes it even weirder is that I have another TArray of structs, populated in defaults on my character, that’s retained as expected on the device!

Here’s the struct for reference

```
USTRUCT()
struct FSlotsAtDistance
{
	GENERATED_USTRUCT_BODY()

	UPROPERTY(EditAnywhere, Category=AttackSlotData)
	float SlotCount;

	UPROPERTY(EditAnywhere, Category = AttackSlotData)
	float Distance;

	FSlotsAtDistance()
	{
		SlotCount = 0;
		Distance = 0;
	};
	FSlotsAtDistance(float Count, float Dist)
	{
		SlotCount = Count;
		Distance = Dist;
	}
};

```

![26801-structarray.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/8/6b87f975a5a462afcb99502fe6f654965252188c.png)
