Foliage Outline
Foliage (instanced meshes) cannot be outlined by enabling custom depth on the instance directly, so EDInteractionSystem uses a different strategy.
How it works
When a foliage instance is focused:
- The outliner reads the instance transform from the instanced component
- It spawns a temporary
UStaticMeshComponent - It assigns the instance static mesh and applies materials (detailed) or the transparent outline material
- It sets the component world transform to match the instance
- It enables CustomDepth and sets the stencil value from
FEDOutlineInfo::OutlineID
Widget location offset
Foliage configuration supports a per-mesh widget offset:
FEDFoliageWidgetInfo::WidgetLocationOffsetbWidgetOffsetRelativeToInstanceScale
The outliner positions the interaction widget in world space by transforming this offset by the instance transform.
Requirements
Same as actor outlines:
- CustomDepth enabled
- Post-process outline solution uses stencil indices