# Struct property can't be edited in level

**URL:** <https://forums.unrealengine.com/t/struct-property-cant-be-edited-in-level/403053>\
**Category:** C++\
**Tags:** property, Struct, unreal-engine, editor, CPP, question\
**Created:** [August 28, 2017, 9:24am UTC](https://forums.unrealengine.com/t/struct-property-cant-be-edited-in-level/403053 "2017-08-28T09:24:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xu\_Nie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xu\_Nie](https://forums.unrealengine.com/u/Xu_Nie)\
**Post date:** [August 28, 2017, 9:24am UTC](https://forums.unrealengine.com/t/struct-property-cant-be-edited-in-level/403053/1 "2017-08-28T09:24:52Z")

</div>

(Copied from [https://answers.unrealengine.com/questions/697408/struct-property-cant-be-edited-in-level.html](https://answers.unrealengine.com/questions/697408/struct-property-cant-be-edited-in-level.html))

I have a struct property, which contains instanced object property. After upgrading to UE4.17, it can’t be edited in level.

![210248-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/e/86e4f0611285bd5df82d5e5c2e8a37692af17230.png)

This struct contains a instanced object property. I think this is the cause.  
A change in UActorComponent::DetermineUCSModifiedProperties() causes the problem.  
In UE4.16, it’s like this:

```
     virtual bool ShouldSkipProperty(const UProperty* InProperty) const override
     {
         return ( InProperty->HasAnyPropertyFlags(CPF_Transient | CPF_ContainsInstancedReference | CPF_InstancedReference)
                 || !InProperty->HasAnyPropertyFlags(CPF_Edit | CPF_Interp));
     } 

```

But in UE4.17, it’s like this:

```
     virtual bool ShouldSkipProperty(const UProperty* InProperty) const override
     {
         return ( InProperty->HasAnyPropertyFlags(CPF_Transient)
                 || !InProperty->HasAnyPropertyFlags(CPF_Edit | CPF_Interp));
     }

```

You can see that CPF\_ContainsInstancedReference | CPF\_InstancedReference is removed in UE4.17. So my struct is always added into UCSModifiedProperties, and it’s treated as const. ☹
