Dec 6, 2021.Knowledge
There are at least a couple of cases where reattaching foliage is sought:
- The foliage placement is fine, but the component upon which its situated needs to be changed out. An example of this might be to switch out a Landscape for a Static Mesh that has the same shape or vice versa.
- The foliage has become detached from its underlying component. There are known issues with this happening and possible causes could be from moving its underlying component to another level, copy and pasting its underlying component, or modifying the shape of its underlying component.
Reestablishing the link between the foliage and the underlying component to fix this can be done in just a few steps:
- Enter Foliage Edit Mode.
- Select the foliage that you would like to reattach.
- Move the selected foliage up above the targeted component. This may be unnecessary if already the case.
- Use Snap to Ground (press the ‘End’ key) to reparent the selected foliage to the targeted component. The foliage will also be aligned to its underlying component’s normal if they were originally placed with this setting enabled.
Additionally, if you would like to create your own custom foliage snap feature or modify the current foliage Snap to Ground then FEdModeFoliage::SnapSelectedInstancesToGround in FoliageEdMode.cpp is a good starting point.