# Easy way to remove Add/Remove button for Array/Map/Set

**URL:** <https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426>\
**Category:** UI\
**Tags:** property-customizati, unreal-engine, Array, editor, slate, question, CPP\
**Created:** [July 17, 2019, 9:53pm UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426 "2019-07-17T21:53:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Farine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nicolas\_Farine](https://forums.unrealengine.com/u/Nicolas_Farine)\
**Post date:** [July 17, 2019, 9:53pm UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426/1 "2019-07-17T21:53:54Z")

</div>

Hi.

I want to prevent people from adding/removing elements in a TArray/TMap/TSet Uproperty.  
Is there an easy way to remove the Add/Remove buttons (like a meta specifier or something)?

 ![282695-image-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/4/4f48dca83cbae995f12fabf92b735f114fff9d6b.png)

The only solution we found right now is to override `PreEditChange` and prevent any modifications if someone tries to edit the property but it’s not the best solution.  
Even if it’s not easy, is there any other way to do it ? Is there any plan to make it easier to edit ?

Thanks,

Nicolas

---

<div class="post-metadata">

**Author:** ![phil\_me\_up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil\_me\_up](https://forums.unrealengine.com/u/phil_me_up)\
**Post date:** [July 17, 2019, 11:08pm UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426/2 "2019-07-17T23:08:14Z")

</div>

Would setting the property to be VisibleAnywhere / VisibleInstanceOnly / VisibleDefaultOnly (depending on your use case) be a solution to this?

---

<div class="post-metadata">

**Author:** ![Nicolas\_Farine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nicolas\_Farine](https://forums.unrealengine.com/u/Nicolas_Farine)\
**Post date:** [July 17, 2019, 11:37pm UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426/3 "2019-07-17T23:37:36Z")

</div>

No, because in some cases, I just want to disable Adding and in other cases, I just want to prevent Removing

---

<div class="post-metadata">

**Author:** ![phil\_me\_up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil\_me\_up](https://forums.unrealengine.com/u/phil_me_up)\
**Post date:** [July 18, 2019, 12:07am UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426/4 "2019-07-18T00:07:14Z")

</div>

Ah I see. I’m not sure I’ve seen any solution to this.

CanEditChange might be useful, but again it essentially blocks all actions rather than being able to block just add or just remove. [UPROPERTY EditCondition and CanEditChange · ben🌱ui](http://benhumphreys.ca/unreal/uproperty-edit-condition-can-edit-change/)

---

<div class="post-metadata">

**Author:** ![Lost\_Boy\_Jason](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lost_boy_jason/32/88713_2.png) [@Lost\_Boy\_Jason](https://forums.unrealengine.com/u/Lost_Boy_Jason)\
**Post date:** [March 26, 2025, 5:47pm UTC](https://forums.unrealengine.com/t/easy-way-to-remove-add-remove-button-for-array-map-set/452426/5 "2025-03-26T17:47:24Z")

</div>

apologies for the necro, but this is solvable now:  
UPROPERTY(EditFixedSize)

should do it for ya. the only downside is that it trims both add and remove, but thats okay in most cases so worth knowing
