If you change the DataLayerAsset name or asset path, all Actors registered with that DataLayer will ignore that DataLayer's settings. Specifically, even if you set the DataLayer to the Unloaded state, those Actors still exist on the level.

or Standalone and Package, this issue occurs immediately after changing the name/path of DataLayerAsset. In the case of PIE the problem occurs after reopening the WP Level with that DataLayer.

This issue can be resolved by re-saving the affected Actors or removing them from the DataLayer and adding them again.

Probably, when the name/path of the DataLayerAsset is changed, I think that it is necessary to enable the Dirty flag for all actors related to them, or to remap the DataLayerAsset at level run time or cook time. For the latter there may be a hint in AssetNameToInstance in AWorldDataLayers.

Steps to Reproduce
  1. Open Attached Project
  2. Open repro level
  3. Play Standalone
  4. You can NOT see white cube managed DataLayer whose initial state is unload
  5. Rename DataLayer(DataLayerAsset)
  6. Play Standalone

expect : same result as 4
result : You can see white cube bacause white box ignore the DataLayer's setting


Have Comments or More Details?

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

Login to Vote

ComponentUE - World Creation - Worldbuilding Tools
Affects Versions5.1.15.1
Target Fix5.3
Fix Commit24261177
CreatedFeb 5, 2023
ResolvedFeb 24, 2023
UpdatedMay 10, 2023