Description

In FWorldConditionQuerySharedDefinition::PostSerialize,

if (Ar.IsLoading() && SerializedObject != nullptr)

the SerializedObject is currently only used for debug logging within Link() and is not required for the actual functionality of world conditions. However, the existing condition in PostSerialize prevents world conditions from being properly linked.

A more appropriate approach would be to remove the condition in PostSerialize and instead perform a nullptr check at the point SerializedObject is actually used. This ensures correct linking behavior while still maintaining safe usage.

Steps to Reproduce

Create a struct with a type of FWorldConditionQueryDefinition and then manually serialize/deserialize it.

Perform a build and observe that the query definition is empty on builds.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-368057 in the post.

2
Login to Vote

Fixed
ComponentUE - AI
Affects Versions5.7
Target Fix5.8
Fix Commit51582910
CreatedMar 1, 2026
ResolvedMar 10, 2026
UpdatedApr 3, 2026
View Jira Issue