Summary
When using WP Actor Properties Transformer with mesh terrain Preview transformer it does not add Data Layer assets to the editor PreviewSection actors.
It’s very difficult to work with mesh terrain and data layers in editor as they can only be unloaded, but not hidden. This is for example a big problem when working with sequencers that manage a data layer track to show/hide data layers.
What Type of Bug are you experiencing?
World Creation Tools
Steps to Reproduce
Create a world partition level.
Add a Data Layer with asset.
Add simple mesh terrain rectangle.
Create and set a Mesh Partition Definition asset.
Create and set a Transformer Pipeline asset for runtime and preview (can be the same for test).
Add Static Mesh Transformer and WP Actor Properties Transformer to the pipeline.
Add the Data Layer to the transformer.
Build Mesh partition.
In the Data Layers window tick the checkbox to load Data Layer.
Tick the visibility column to hide the loaded Data Layer.
Expected Result
PreviewSection terrain meshes should be hidden.
Observed Result
PreviewSection terrain meshes remain visible.
Preview actors don’t have a Data Layer asset assigned to them.
Runtime actors do have a Data Layer asset assigned correctly and do hide at runtime.
Affects Versions
5.8
Platform(s)
Windows
Additional Notes
From what I gathered AActor::SupportsDataLayerType returns false for PreviewSection actors because they don’t have a RF_HasExternalPackage flag and so they are skipped.