# \[4.7 Bug\] Properties inside struct, can't be edited when object is instanced inline inside ActorComponent

**URL:** <https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509>\
**Category:** C++\
**Tags:** UE4-7, unreal-engine, bug-report, question, CPP\
**Created:** [February 10, 2015, 7:50am UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509 "2015-02-10T07:50:53Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [February 10, 2015, 7:50am UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/1 "2015-02-10T07:50:53Z")

</div>

Reproduction:

Create simple USTRUCT():

```
USTRUCT(BlueprintType)
struct FGAAttributeBase
{
	GENERATED_USTRUCT_BODY()
public:
	UPROPERTY()
		FName AttributeName;
	UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Value")
		float BaseValue;
}

```

Now create new UObject Class:

```
UCLASS(BlueprintType, Blueprintable, DefaultToInstanced, EditInlineNew)
class UARCharacterAttributes : public UObject
{
	GENERATED_BODY()
public:
	UARCharacterAttributes(const FObjectInitializer& ObjectInitializer);
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Resources")
		FGAAttributeBase Health;
}

```

And Finally new ActorComponent:

```
UCLASS(hidecategories = (Object, LOD, Lighting, Transform, Sockets, TextureStreaming), editinlinenew, meta = (BlueprintSpawnableComponent))
class UGAAttributeComponent : public UActorComponent
{
	GENERATED_UCLASS_BODY()
public:
	UPROPERTY(EditAnywhere, BlueprintReadOnly, Instanced, Replicated)
		class UARCharacterAttributes* DefaultAttributes;
}

```

Add this component to your character, using ObjectInitializer.

Launch, project, and try to edit Health property.

I have been using latest 4.7 from github.

---

<div class="post-metadata">

**Author:** ![twiddle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twiddle](https://forums.unrealengine.com/u/twiddle)\
**Post date:** [February 18, 2015, 9:09pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/2 "2015-02-18T21:09:21Z")

</div>

Just a quick observation - I haven’t checked this, but doesn’t

UPROPERTY(EditAnywhere, **BlueprintReadOnly** , Category = “Value”)

float BaseValue;

mark the Basevalue as non-editable?  
Marking the overall UProperty struct as editable wouldn’t change all the struct’s members to editable. Seeing as your only visible property (Basevalue) is not editable it would look, in the editor, as though the whole struct wasn’t able to be edited.

---

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [February 18, 2015, 9:53pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/3 "2015-02-18T21:53:45Z")

</div>

No it will just make it ReadOnly in graph.

It works just fine in defaults.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 10, 2015, 8:32pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/4 "2015-03-10T20:32:54Z")

</div>

Hi,

Sorry for the delay in responding to this post. I used the code you provided to try to reproduce this issue, but received a LNK2019 compile error in GAAttributeComponent. Would it be possible to see the code in the source file for this class?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 16, 2015, 6:41pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/5 "2015-03-16T18:41:53Z")

</div>

Hi,

We have not heard back from you for a few days. Do you still need help with this issue? I will be marking this issue as resolved for tracking purposes, but please feel free to re-open this post at any time if you need any additional help.

---

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [March 16, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/6 "2015-03-16T20:49:27Z")

</div>

Hey sorry for late reply, I was on the road, over past few days and wasn’t able to create project which would reproduce the issue. But here is download link:  
[https://dl.dropboxusercontent.com/u/70400220/Bugs/StructBug.7z](https://dl.dropboxusercontent.com/u/70400220/Bugs/StructBug.7z)  
Just open this project, and check character component. You should be able to select one class for the Attributes field.

In that class there will be property Health (under resources category), And as you can see you can’t change properties inside Health struct.

I checked it against latest binary.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 17, 2015, 8:14pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/7 "2015-03-17T20:14:55Z")

</div>

Hi,

Thank you for providing the sample project. I was able to see what you were referring to, and used that project as a basis to test this issue in our latest internal build of the Engine. I saw the same results there, and have submitted a report to have this investigated further (UE-12025).

---

<div class="post-metadata">

**Author:** ![Xanen0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xanen0](https://forums.unrealengine.com/u/Xanen0)\
**Post date:** [January 28, 2016, 9:17pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/8 "2016-01-28T21:17:53Z")

</div>

Hi . Do you have any update on the status of this issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [February 1, 2016, 9:39pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/9 "2016-02-01T21:39:51Z")

</div>

Hi Xanen0,

Unfortunately this issue has not yet been resolved. The ticket is still open.

There may be a possible workaround, though. From what I can tell, the properties being uneditable only occurs if the ActorComponent they are instanced within is added to a class via C++. If you are able to add the ActorComponent in the Blueprint Editor, the properties can usually be edited.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [June 20, 2016, 10:24am UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/10 "2016-06-20T10:24:31Z")

</div>

I can confirm the issue is still in version 4.12.3…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [June 28, 2016, 8:41pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/11 "2016-06-28T20:41:22Z")

</div>

Hi ,

Thank you for letting us know. I have updated the report of the issue to indicate that it is still occurring in 4.12.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [August 11, 2018, 8:52pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/12 "2018-08-11T20:52:03Z")

</div>

This is still an issue in 4.20! How has this not been resolved yet…

Would love to know where to look to start fixing this. Happy to do a PR.

---

<div class="post-metadata">

**Author:** ![AndyHunter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndyHunter](https://forums.unrealengine.com/u/AndyHunter)\
**Post date:** [August 22, 2019, 2:27am UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/13 "2019-08-22T02:27:15Z")

</div>

This bug is not fixed in 4.22 yet.  
@ @inside Could you share how did you deal with it?

Looks like epic just ignored it

---

<div class="post-metadata">

**Author:** ![hzn84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hzn84](https://forums.unrealengine.com/u/hzn84)\
**Post date:** [January 28, 2021, 9:09pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/14 "2021-01-28T21:09:34Z")

</div>

What’s the status of this issue?  
I’ve run into it just now.

---

<div class="post-metadata">

**Author:** ![mr.kubstoff](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mr.kubstoff/32/1056128_2.png) [@mr.kubstoff](https://forums.unrealengine.com/u/mr.kubstoff)\
**Post date:** [May 9, 2023, 5:35pm UTC](https://forums.unrealengine.com/t/4-7-bug-properties-inside-struct-cant-be-edited-when-object-is-instanced-inline-inside-actorcomponent/306509/15 "2023-05-09T17:35:33Z")

</div>

I can confirm that this isse still persists on 5.0.2  
the ticket UE-12025 was flagged as Won’t Fix in 2021

The solution could be to use property matrix to get to the desired Properties and edit them, although it would be cool to just use the details panel.
