Description

From licensee:

The function AWorldDataLayers::GetDataLayerInstanceFromAssetName() uses different names in #WITH_EDITOR and without editor builds:

#WITH_EDITOR config calls DataLayerInstance->GetDataLayerFullName(), which in case of a UDataLayerInstanceWithAsset returns UDataLayerInstanceWithAsset::GetPathName()

Without editor performs a lookup through AWorldDataLayers::AssetNameToInstance but this one is initialized with this code, using the full name:

AssetNameToInstance.Add(DataLayerInstanceWithAsset->GetAsset()->GetFullName(), DataLayerInstance);

Steps to Reproduce

See description.
To reproduce, need to call a function in C++.
Did exactly that before/after the fix to confirm that it's fixed.

Have Comments or More Details?

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

0
Login to Vote

Fixed
Fix Commit32830666
CreatedApr 9, 2024
ResolvedApr 9, 2024
UpdatedApr 9, 2024
View Jira Issue