On copypasting landscape from one level to another - its foliage appears in a wrong location. Please help
If the foliage is appearing in the wrong location when copying a landscape from one level to another, it’s likely due to the foliage instances not having the correct relative transform information. This can happen if the landscape is not copied along with its components, or if the origin of the landscape in the destination level is different from the original.
To resolve this issue, you can try the following steps:
- Make sure to copy the entire landscape, including its components and all its foliage instances. You can do this by selecting the landscape in the level and using the “Duplicate” or “Copy” function.
- Ensure that the origin of the destination level is set to the same location as the original level. You can do this in the “Details” panel of the level, under the “Level” category.
- Check the relative transform information of the foliage instances. You can do this by selecting the foliage instances and looking at the “Relative Location” and “Relative Rotation” properties in the “Details” panel. If these values are not correct, you can try to reset them to their default values by right-clicking on the properties and selecting “Reset”.
If the above steps don’t resolve the issue, you may need to manually adjust the foliage instances by moving and rotating them so that they are correctly positioned in the landscape.
Thank you a lot for taking time to help. The issue is indeed related to origins.
The solution:
I was copy-pasting 2 landscapes simultaneously, and upon pasting them - Unreal Engine was assigning foliage to the wrong one, resulting in foliage having incorrect origin. I copied landscapes 1 by 1 and it solved the issue.
Fantastic! Please mark the most suitable answer as the solution!
If anyone else runs into the issue where the grass / rocks are floating above your landscape after migrating a level from another project, this try this command:
grass.flushcache