# Can we make a map an @editable? in the docs it mentions it

**URL:** <https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [October 13, 2024, 1:33am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771 "2024-10-13T01:33:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhoeNyxTopG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhoeNyxTopG](https://forums.unrealengine.com/u/PhoeNyxTopG)\
**Post date:** [October 13, 2024, 1:33am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771/1 "2024-10-13T01:33:42Z")

</div>

can we make make a map{} @editable like an array? i tried but i get compilation errors, in the docs it references it: [Editable Properties | Unreal Editor for Fortnite Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/uefn/customize-verse-device-properties-in-verse)

Currently, the following types can be exposed to the editor as editable properties:

logic  
int  
float  
enum  
string  
arrays of editable types  
maps of editable types  
structs of editable types  
class instances  
Several other editable types exist, each with their own definition:

---

<div class="post-metadata">

**Author:** ![Twin01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/twin01/32/1077777_2.png) [@Twin01](https://forums.unrealengine.com/u/Twin01)\
**Post date:** [October 13, 2024, 2:46am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771/2 "2024-10-13T02:46:36Z")

</div>

Unfortunately we can’t make a map an editable, despite what the docs say. Hopefully we can in the future.

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 14, 2024, 8:14am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771/3 "2024-10-14T08:14:27Z")

</div>

You need to make an array of classes and then use the class properties to index your own map (at construction time for example)

```auto
notification_system_data := class<concrete>:
    @editable
    Type : notification_type = notification_type.Info

    @editable
    HUDMessageDevice : hud_message_device = hud_message_device{}

notification_system := class(creative_device):
    @editable
    InstigatedHUDMessageData : []notification_system_data = array{}

    var InstigatedHUDMessages : [notification_type]hud_message_device = map{}
    block:
        set InstigatedHUDMessages = map{} # Sometimes you'd want to add this line otherwise it can add up when you push changes
        for(Data : InstigatedHUDMessageData):
            option{set InstigatedHUDMessages[Data.Type] = Data.HUDMessageDevice}

```

---

<div class="post-metadata">

**Author:** ![PhoeNyxTopG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhoeNyxTopG](https://forums.unrealengine.com/u/PhoeNyxTopG)\
**Post date:** [October 16, 2024, 7:19am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771/4 "2024-10-16T07:19:15Z")

</div>

yes, aware of that, but when we have a big array as editable, it just says index 0, index 1, index 2, and makes it harder to navigate and have to press expand all to check all array indexes for the right key, if it were a map we would see the keys, and it would be much easier to navigate from the editor

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 16, 2024, 9:14am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771/5 "2024-10-16T09:14:42Z")

</div>

Haha don’t take a look at npc behaviors then 🥲

If you’re having issues with indexes, make sure they’re in the right order, also if you want to reorder them you can use

```auto
@editable_container{ AllowReordering := true }
    SomeArray : []int = array{1,2,3}

```
