# Values in ActorComponent properties with Instanced and EditInlineNew keywords are not saved

**URL:** <https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362>\
**Category:** C++\
**Tags:** properties, unreal-engine, Instanced-Mesh, CPP, question\
**Created:** [March 8, 2017, 11:26pm UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362 "2017-03-08T23:26:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BStbck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BStbck](https://forums.unrealengine.com/u/BStbck)\
**Post date:** [March 8, 2017, 11:26pm UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/1 "2017-03-08T23:26:56Z")

</div>

I have a weird problem when using a UPROPERTY with the Instanced keyword in a custom ActorComponent.  
There are several similar questions already, but I couldn’t find one for this specific problem.

Steps to reproduce (with an empty C++ project):

1. Create three UObjects with EditInlineNew, two of them inheriting from the first one.

2. Create an ActorComponent with a property marked as Instanced:

3. Create an actor with this component:

4. Create Blueprint of ACppTestActor , set the property MyObj of the TestComponent to “Cpp Test Obj 1”.

5. Place the actor in a map and change the property on the instance to “Cpp Test Obj 2”.

6. Save the map, exit (or load another map) and load it again. The value on the placed actor will have returned to “Cpp Test Obj 1”.

Notes:

- This has even weirder effects when the property in the component is a TArray, but I suspect it is the same underlying cause and this is the simplest example I could create.

- When the component is placed inside a simple Actor Blueprint in the editor, the value cannot be changed at all on the instance.

- When the property is placed directly in the actor instead of the component, everything works as expected (value can be changed and is saved correctly).

The functionality would be really useful to have, so I would be thankful for any tips in getting this to work.

---

<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:** [March 9, 2017, 3:05pm UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/2 "2017-03-09T15:05:34Z")

</div>

Hey BStbck-

This is a known issue that has been repoted here: [Unreal Engine Issues and Bug Tracker (UE-38871)](https://issues.unrealengine.com/issue/UE-38871) . You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

Cheers

---

<div class="post-metadata">

**Author:** ![BStbck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BStbck](https://forums.unrealengine.com/u/BStbck)\
**Post date:** [March 9, 2017, 3:22pm UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/3 "2017-03-09T15:22:42Z")

</div>

Hi ,

thanks for the info.  
It might to worthwile to add a note to the issue that it also happens on single element properties instead of only for TArrays, though.

Regards  
BStbck

---

<div class="post-metadata">

**Author:** ![javidcf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@javidcf](https://forums.unrealengine.com/u/javidcf)\
**Post date:** [May 26, 2021, 11:28am UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/4 "2021-05-26T11:28:37Z")

</div>

I got a similar issue (I suspect the same root cause) when trying to set a default value for an Instanced property in the C++ constructor using CreateDefaultSubobject. When I changed the value of the property in a blueprint class, it wouldn’t be properly saved. Or rather, the property does get saved, but it is not loaded properly, or it is replaced by the default object after loading (I realised this when I commented out the CreateDefaultSubobject line after saving a blueprint with a modified property value and then it was loaded correctly).

---

<div class="post-metadata">

**Author:** ![SnowFlying](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/snowflying/32/675980_2.png) [@SnowFlying](https://forums.unrealengine.com/u/SnowFlying)\
**Post date:** [April 8, 2023, 12:07pm UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/5 "2023-04-08T12:07:46Z")

</div>

Hi, We hope this Blueprint Class “EditInlinenNew” plugin (which no longer requires any C++ to use the EditInlinenNew feature) will help you.

> **[Blueprint EditInlineNew in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/blueprint-editinlinenew)**
>
> Blueprint EditInlineNew feature for Blueprint Class and Blueprint Variable. To implement the EditInlineNew feature, simply check the check box in the blueprint.

---

<div class="post-metadata">

**Author:** ![Ldwork\_Gamedev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ldwork_gamedev/32/886560_2.png) [@Ldwork\_Gamedev](https://forums.unrealengine.com/u/Ldwork_Gamedev)\
**Post date:** [April 10, 2024, 7:22am UTC](https://forums.unrealengine.com/t/values-in-actorcomponent-properties-with-instanced-and-editinlinenew-keywords-are-not-saved/387362/6 "2024-04-10T07:22:46Z")

</div>

The way I handle this is to create a blueprint class derived from that ActorComponent and add it to actor on blueprint, not in C++
