# PostEditChangeProperty() is not a member of UActorComponent?

**URL:** <https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075>\
**Category:** Programming & Scripting\
**Tags:** inheritance, unreal-engine, editor, CPP, question\
**Created:** [April 2, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075 "2025-04-02T13:18:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarryIsAlright](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryIsAlright](https://forums.unrealengine.com/u/HarryIsAlright)\
**Post date:** [April 2, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075/1 "2025-04-02T13:18:31Z")

</div>

I have a plugin, which contains a component, which inherits from UActorComponent. Below is a small snippet of the code:

MyComponent.h

```auto
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "MyComponent.Generated.h"

UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class MYMODULE_API UMyComponent : public UActorComponent
{
    ...
    virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
    ...
}

```

When I try to package my plugin (either using CLI or through UE), I get the following errors:

error C3668: PostEditChangeProperty: method with override specifier ‘override’ did not override any base class methods

error C2039: ‘PostEditChangeProperty’: is not a member of ‘UActorComponent’

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [April 2, 2025, 1:45pm UTC](https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075/2 "2025-04-02T13:45:27Z")

</div>

.h

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/6/ec6a75a9b990338becbc5e41a0ae53c0688a691e.png)

.cpp

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/4/ea408d61336b57cfb6df35bb07f8ad0091d908fb.png)

Compiles no problem on a test project in 5.4

Maybe you need to refresh / regenerate your project?

The lack of editor only macro might also be triggering a problem.

---

<div class="post-metadata">

**Author:** ![HarryIsAlright](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarryIsAlright](https://forums.unrealengine.com/u/HarryIsAlright)\
**Post date:** [April 2, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075/3 "2025-04-02T13:51:36Z")

</div>

I just added the #if pre-processors around the declaration and definition and that seems to have done the trick. Thank you for including that in your snippet!!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 2, 2025, 1:52pm UTC](https://forums.unrealengine.com/t/posteditchangeproperty-is-not-a-member-of-uactorcomponent/2436075/4 "2025-05-02T13:52:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
