# TOptional Properties on derived classes don't update with parent 

**URL:** <https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [October 23, 2025, 2:30pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498 "2025-10-23T14:30:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 23, 2025, 2:30pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/1 "2025-10-23T14:30:23Z")

</div>

When editing a TOptional property in a Base BP, the change doesn’t propagate to Derived BPs (that have no Instance changes that would override it)

E.g. (As per the repro steps)

Take BP\_TOptionalBase and BP\_TOptionalDerived where Derived’s parent class is Base

When making an edit to a TOptional property in the base BP the change isn’t reflected in the derived BP.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 23, 2025, 2:30pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/2 "2025-10-23T14:30:27Z")

</div>

**Steps to Reproduce**  
I’ve attached a Zip file with a Plugin (used with Stock UE) for everything you need to repro the issue.

When in editor open BP\_TOptionalBase and BP\_TOptionalDerived

In BP\_TOptionalBase make an edit to Raw Property and to Optional Property

In BP\_TOptionalDerived see that the Raw Property change propagates whereas the Optional Property change doesn’t

(This is without any changes to the Derived BP so it’s not Instance overriding Default)

Plugin is made in 5.5.4 but same problem is experienced in 5.6.1

---

<div class="post-metadata">

**Author:** ![ZhiKangShao](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhikangshao/32/1089997_2.png) [@ZhiKangShao](https://forums.unrealengine.com/u/ZhiKangShao)\
**Post date:** [October 27, 2025, 2:23pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/3 "2025-10-27T14:23:01Z")

</div>

Hey, thanks for the repro code. This issue is still present in UE 5.7+ and is primarily an oversight that comes from TOptional’s editor logic differing from other property types. I’ve entered this as bug [UE-350636](https://issues.unrealengine.com/issue/UE-350636) in our issue tracker. You can keep an eye on that page for progress on the engine fix.

Here is what I’ve found so far. The problem starts when setting/unsetting: the editor path for _setting_and _unsetting_ the optional value does not propagate the set/unset state to any children. That logic is specific to TOptional and is currently flawed. Callstacks for reference:

```auto
     OptionalProperty->MarkSetAndGetInitializedValuePointerToReplace(Addr);
> UnrealEditor-PropertyEditor.dll!FPropertyHandleOptional::SetOptionalValue(FProperty * NewProperty, const UClass * NewObjectClass) Line 5713 C++
     UnrealEditor-PropertyEditor.dll!FPropertyEditor::OnSetOptionalValue(FProperty * NewProperty, const UClass * NewObjectClass) Line 374 C++ 

```

```auto
     OptionalProperty->MarkUnset(Addr);
> UnrealEditor-PropertyEditor.dll!FPropertyHandleOptional::ClearOptionalValue() Line 5867 C++
     UnrealEditor-PropertyEditor.dll!FPropertyEditor::OnClearOptionalValue() Line 389 C++ 

```

I have a half-solution which at least updates the data of loaded children immediately. It doesn’t refresh opened blueprint editors so their _view_ is incorrect until blueprint compilation. Just sharing this in case you want to take the half-solution already to mitigate data loss. In FPropertyHandleOptional::SetOptionalValue() you can make the following modification:

```auto
OptionalProperty->MarkSetAndGetInitializedValuePointerToReplace(Addr);
 
// START EDIT
const TArray<UObject*>& AffectedInstances = AffectedInstancesPerObject[i];
for (UObject* Inst : AffectedInstances)
{
	void* InstPropAddr = OptionalProperty->ContainerPtrToValuePtr<void>(Inst);
	OptionalProperty->MarkSetAndGetInitializedValuePointerToReplace(InstPropAddr);
	UE_LOG(LogTemp, Warning, TEXT("Additionally set and initialized optional value on: %s"), *Inst->GetPathName());
}
// END EDIT

```

Similarly in ClearOptionalValue:

```auto
OptionalProperty->MarkUnset(Addr);
 
// START EDIT
const TArray<UObject*>& AffectedInstances = AffectedInstancesPerObject[i];
for (UObject* Inst : AffectedInstances)
{
	void* InstPropAddr = OptionalProperty->ContainerPtrToValuePtr<void>(Inst);
	OptionalProperty->MarkUnset(InstPropAddr);
	UE_LOG(LogTemp, Warning, TEXT("Additionally unset optional value on: %s"), *Inst->GetPathName());	
}
// END EDIT

```

The details view of derived BPs will be outdated, but any view refresh like on compiling blueprints will correct that. With this solution, at least resaving derived BPs after making a parent BP change will no longer cause them to stop inheriting the value. The full fix will follow later, but hard to say when.

---

<div class="post-metadata">

**Author:** ![ZhiKangShao](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhikangshao/32/1089997_2.png) [@ZhiKangShao](https://forums.unrealengine.com/u/ZhiKangShao)\
**Post date:** [October 29, 2025, 6:18pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/4 "2025-10-29T18:18:42Z")

</div>

A short update: [UE-350636](https://issues.unrealengine.com/issue/UE-350636) won’t receive high priority, because TOptional being exposed through the details panel turns out to be a side effect of other work. It’s not officially blueprint supported, for example you can’t add a BP Variable that’s optional. I would consider avoiding using TOptional in blueprints. This will also affect actor workflows: when changing the set/unset state in an actor BP, actor instances loaded in the level editor will also not update immediately.

Reloading the level without resaving would work, as would reloading derived BPs but until [UE-350636](https://issues.unrealengine.com/issue/UE-350636) is fixed you will encounter data loss if you accidentally resave a derived BP class or an instance in the editor level.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 30, 2025, 11:44am UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/5 "2025-10-30T11:44:34Z")

</div>

Hi,

Thanks for the quick response and help.

It’s odd to hear that it’s a side effect, “Added support for the TOptional type to UHT” is in the 5.4 release notes

[Unreal Engine 5.4 Release Notes | Unreal Engine 5.4 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-5.4-release-notes?application_version=5.4)

I tried integrating the temp fix you gave, and while it does fix my case, it causes crashes in others.

Seemingly when the TOptional is in a TArray (via a UStruct)

It fails the check(GetOwner\<UClass\>()); in ContainerUObjectPtrToValuePtrInternal (the call added in the temp fix)

---

<div class="post-metadata">

**Author:** ![ZhiKangShao](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhikangshao/32/1089997_2.png) [@ZhiKangShao](https://forums.unrealengine.com/u/ZhiKangShao)\
**Post date:** [November 3, 2025, 12:23pm UTC](https://forums.unrealengine.com/t/toptional-properties-on-derived-classes-dont-update-with-parent/2681498/6 "2025-11-03T12:23:04Z")

</div>

“I tried integrating the temp fix you gave, and while it does fix my case, it causes crashes in others.”

Understood. Though that case is fixable, adding full support for TOptional will be a bigger task and I’m going to leave it to system owners to get to that eventually. I would consider not using TOptional for the time being.

“It’s odd to hear that it’s a side effect, “Added support for the TOptional type to UHT” is in the 5.4 release notes”

The use case for which this was implemented did not involve BP inheritance. IMO this release note is misleading, thanks for pointing this out. I’ll see if I can get this corrected to be more specific.
