# Nested concrete classes @editable properties gets reset everytime

**URL:** <https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [September 5, 2023, 3:43pm UTC](https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935 "2023-09-05T15:43:35Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [September 5, 2023, 3:43pm UTC](https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935/1 "2023-09-05T15:43:35Z")

</div>

So I made this setup for a generic item fetching objective :  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17a2b336eac96f445c511c526494c7967ecf399d.png)

As you can see the PropsToFetch array is filled with properties, but everytime I build Verse or reopen my project, it gets reset.  
Building Verse shows this error : (even when I didn’t change anything to the file)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/5/b250ad83e8f8103bf23ffbe50ff9471949946bca.png)

As you can see, array now contains object that I can’t edit anymore ? I think this only happens when Building Verse, if I reopen the project it will just fill in “None” values instead!  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/9/b995d96a18b67a350d7ee3976c8fabf94eb709b7.png)

Here’s the code in case someone is interested in trying to help 🦐

```auto
colored_buddies_objective_prop := class<concrete>:
    @editable
    Prop : creative_prop = creative_prop{}

    @editable
    PickUpButton : button_device = button_device{}

    var PlayerAttachedItem<private> : ?player_attached_item = false

    GetPlayerAttachedItem()<transacts><decides>:player_attached_item = PlayerAttachedItem?

    MakePlayerAttachedItem(Options: player_attached_item_options):player_attached_item=
        NewAttachableItem := player_attached_item{
            AttachedItem := Prop
            Options := Options
        }

        set PlayerAttachedItem = option{NewAttachableItem}
        return NewAttachableItem

    Enable():void=
        Prop.Show()
        PickUpButton.Enable()

    Disable():void=
        Prop.Hide()
        PickUpButton.Disable()

        if(AttachedItem := GetPlayerAttachedItem[]):
            AttachedItem.DetachFromPlayer(?ShouldResetTransform := true)

colored_buddies_objective := class<concrete>:
    # UPDATE: tuple() don't expose correctly to the editor
    @editable
    PropsToFetch : []colored_buddies_objective_prop = array{}

colored_buddies_gamemode := class(creative_device, patrolling_ai_manager):

    @editable
    Objectives : []colored_buddies_objective = array{}

```

---

<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:** [September 5, 2023, 4:12pm UTC](https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935/2 "2023-09-05T16:12:46Z")

</div>

Adding a `<public>` specifier to the `colored_buddies_objective` class fixed this, I don’t know why 🤔 Isn’t is public by default ?

EDIT: It only fixed it for an hour or so, had to convert `colored_buddies_objective` to a `creative_device` instead 🤷

---

<div class="post-metadata">

**Author:** ![Alien-lady](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alien-lady](https://forums.unrealengine.com/u/Alien-lady)\
**Post date:** [September 6, 2023, 12:19am UTC](https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935/3 "2023-09-06T00:19:48Z")

</div>

> Thank you for your report! Can you please re-post using the “New Issue” option on the [Issues and Bug Reporting forums](https://forums.unrealengine.com/tags/c/general/issues-and-bug-reporting/172/fortnite)? Posts with this feature are connected directly into our development team so we can quickly get to them!  
> For more information, such as how to get the reference ID, please check out the article here: [Using the Creative and UEFN Bug Reporting Form](https://create.fortnite.com/news/using-the-creative-and-uefn-bug-reporting-form)

---

<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:** [September 6, 2023, 6:17pm UTC](https://forums.unrealengine.com/t/nested-concrete-classes-editable-properties-gets-reset-everytime/1283935/4 "2023-09-06T18:17:55Z")

</div>

Why can’t I convert my post to a new-issue one ? Like you can do to convert a discussion to a question.

Oh I realized it’s the same form as the creative issue one. I don’t really understand why it got added then 🤔
