# Property Setter is not getting called

**URL:** <https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 9, 2025, 6:59pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873 "2025-10-09T18:59:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninjaneering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ninjaneering](https://forums.unrealengine.com/u/ninjaneering)\
**Post date:** [October 9, 2025, 6:59pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/1 "2025-10-09T18:59:42Z")

</div>

I am trying to set up actor teams for use with the AI Perception system, where a base class derived from `ACharacter` exposes the team as an `FName` and uses a setter `SetTeamName` to turn that into an `FGenericTeamId`. I declare the setter function and variables in my header as:

```cpp
protected:

UFUNCTION(BlueprintCallable)
void SetTeamName(const FName& name);

UPROPERTY(EditAnywhere, Setter, meta = (GetOptions = "GetTeamNames"))
FName TeamName;

UPROPERTY(VisibleAnywhere)
FGenericTeamId Team;

```

While the `GetOptions` works fine, properly displays my set of viable team `FNames` and appears to set `TeamName`, it does so directly and does not go through `SetTeamName`. I have verified this by running the game in debug through Visual Studio and setting a breakpoint in the setter, which never hits.

I’ve tried this with the UFUNCTION macro, without it, with explicitly setting the Setter method, with and without a Getter, and changing the method signature to use an `FName` directly instead of a const reference. Any help would be appreciated!

Edit:

To be more specific, I want the setter to be called when setting the value in the Details pane:

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

The `Team Name` dropdown populates correctly, but it directly sets the `FName` in the class instead of calling `SetTeamName`

---

<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:** [October 9, 2025, 7:54pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/2 "2025-10-09T19:54:25Z")

</div>

```auto
public:

	UFUNCTION(BlueprintCallable)
	void SetTeamName(const FName& name);

	UFUNCTION(BlueprintPure)
	FName GetTeamNames();

protected:	
	UPROPERTY(EditAnywhere, Setter, meta = (GetOptions = "GetTeamNames"))
	FName TeamName;

```

cpp

```auto
void AMyActor::SetTeamName(const FName& name)
{
	GEngine->AddOnScreenDebugMessage(1, 1, FColor::Orange, TEXT("Setting name "));
	TeamName = name;
}

FName AMyActor::GetTeamNames()
{
	return TeamName;
}

```

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/2/4f2bc64fb4ade88958ee0553e428300b88c7c4e6.png)

Triggered

![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/b/2/7/b27500cf2ca77a9c28735662218895dc23b4ed4e_2_690x75.png)

In action

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

in game

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/b/cdb9b934ef97b8291dad43931622e2b865119dab.png)  
So internal logic is triggered (where you can sanitize it, and format the text as needed)

---

<div class="post-metadata">

**Author:** ![ninjaneering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ninjaneering](https://forums.unrealengine.com/u/ninjaneering)\
**Post date:** [October 9, 2025, 8:05pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/3 "2025-10-09T20:05:58Z")

</div>

@3dRaven thank you for replying, I should have been more specific. I want the Setter to be called when I set the value through the Details pane specifically, not through a Blueprint. For example:

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

The `Team Name` dropdown populates correctly and sets the underlying value, but I want it to call `SetTeamName` so that it updates `Team ID` as well.

---

<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:** [October 9, 2025, 8:07pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/4 "2025-10-09T20:07:07Z")

</div>

Well that is not through the setter and getter function 😉

Look into `PostEditChangeProperty`

> [@How do I use PostEditChangeProperty?](https://forums.unrealengine.com/t/how-do-i-use-posteditchangeproperty/324110/2):
>
> /\* If MyBool belongs to the ASomeActor \*/ void ASomeActor::PostEditChangeProperty(struct FPropertyChangedEvent& e) { Super::PostEditChangeProperty(e); FName PropertyName = (e.Property != NULL) ? e.Property-\>GetFName() : NAME\_None; if (PropertyName == GET\_MEMBER\_NAME\_CHECKED(ASomeActor, MyBool)) { /\* Because you are inside the class, you should see the value already changed \*/ if (MyBool) doThings(); // This is how you access MyBool. els…

OFC you need to modify it to call the chain of functions you require based on the team variable.

---

<div class="post-metadata">

**Author:** ![ninjaneering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ninjaneering](https://forums.unrealengine.com/u/ninjaneering)\
**Post date:** [October 9, 2025, 8:12pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/5 "2025-10-09T20:12:14Z")

</div>

I guess I was under the impression that `Setter` was different from `BlueprintSetter`, as the latter seems more explicit to blueprints. I had completely forgotten about `PostEditChangeProperty`, that probably is the only way to do what I want. Thanks!

---

<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:** [October 9, 2025, 8:31pm UTC](https://forums.unrealengine.com/t/property-setter-is-not-getting-called/2663873/6 "2025-10-09T20:31:36Z")

</div>

Don’t forget to wrap it in an editor macro and call it’s super (parent) implementation at some point or you might get an error

```auto
#if WITH_EDITOR
void AMyClass::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{

// your code here

Super::PostEditChangeProperty(PropertyChangedEvent); // calls parent default change code
}
#endif

```

This stuff is editor only code so it has to be isolated with the if block WITH\_EDITOR
