# Cannot bind property of array element in Editor

**URL:** <https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599>\
**Category:** UI\
**Tags:** unreal-engine, editor, CPP, question, UMG\
**Created:** [October 27, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599 "2016-10-27T13:38:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![endragorr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@endragorr](https://forums.unrealengine.com/u/endragorr)\
**Post date:** [October 27, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599/1 "2016-10-27T13:38:55Z")

</div>

UE4 supports binding property values with delegates. For example, this is how `Brush` property is declared in `UImage`:

```
/** Image to draw */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance)
FSlateBrush Brush;

/** A bindable delegate for the Image. */
UPROPERTY()
FGetSlateBrush BrushDelegate;

```

When the same is declared inside `USTRUCT` that is used as an element of `TArray`, there is no `Bind` dropdown in the Editor. Sample, to demonstrate the idea:

```
#include "Engine.h"
#include "UMG.h"
#include "MyButton.generated.h"

USTRUCT()
struct FBindableBrush {
GENERATED_USTRUCT_BODY()
public:
  /** Image to draw */
  UPROPERTY(EditAnywhere)
  FSlateBrush Brush;
  /** A bindable delegate for the Image. */
  UPROPERTY()
  UWidget::FGetSlateBrush BrushDelegate;
};

UCLASS()
class UMyButton: public UButton {
GENERATED_BODY()
public:
  UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Brushes")
  TArray<FBindableBrush> Brushes;
};

```

Steps to reproduce:

1. Add “Slate”, “SlateCore”, “UMG” as dependencies in Build.cs file of your project.
2. Create “MyButton.h” in your project, copy-paste the sample above into it.
3. Create “MyButton.cpp” that merely contains include of your project header and MyButton.h.
4. Compile the project.
5. Create a Widget Blueprint in the Editor.
6. Drop “My Button” from “Common” section of the Palette.
7. In the Properties window of the button, add an element to “Brushes” array.
8. Observe that there is no “Bind” dropdown for the newly added element of the array. But if you put the same properties directly into a Widget (like UMG does in many places), then the “Bind” dropdown appears.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 27, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599/2 "2016-10-27T19:45:55Z")

</div>

Can you provide the full class where you’re adding your struct? After editing my Build.cs file to include UMG, Slate, and SlateCore, I was still receiving compile errors when I added your struct to my custom UButton class.

---

<div class="post-metadata">

**Author:** ![endragorr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@endragorr](https://forums.unrealengine.com/u/endragorr)\
**Post date:** [October 28, 2016, 3:24am UTC](https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599/3 "2016-10-28T03:24:32Z")

</div>

Hi ,  
I’m not sure why you closed [Editor crashes with bindable property in UMG Slot - UI - Epic Developer Community Forums](https://answers.unrealengine.com/questions/515036/editor-crashes-with-bindable-property-in-umg-slot-1.html) as a duplicate. They are completely separate issues, even though both related to bindable properties. This issue might be considered a feature request, depending on UE4 original expectations. The former issue is definitely a bug, since it leads to a crash.

I’ve edited both questions to contain steps to reproduce. I hope that helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 28, 2016, 3:09pm UTC](https://forums.unrealengine.com/t/cannot-bind-property-of-array-element-in-editor/374599/4 "2016-10-28T15:09:52Z")

</div>

Hey -

Thank you for the reproduction steps, I was able to reproduce the issue and have submitted a report here: [Unreal Engine Issues and Bug Tracker (UE-37940)](https://issues.unrealengine.com/issue/UE-37940) . You can track the report’s status as the issue is reviewed by our development staff.

Cheers
