Navigation
API > API/Runtime > API/Runtime/Foliage > API/Runtime/Foliage/AInstancedFoliageActor > API/Runtime/Foliage/AInstancedFoliageActor/MoveInstancesToNewComponent
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/InstancedFoliageActor.h |
| Include | #include "InstancedFoliageActor.h" |
| Source | /Engine/Source/Runtime/Foliage/Private/InstancedFoliage.cpp |
void MoveInstancesToNewComponent
&40;
UPrimitiveComponent &42; InOldComponent,
const FBox & InBoxWithInstancesToMove,
UPrimitiveComponent &42; InNewComponent
&41;
Remarks
Change all instances based on one component to a new component (possible in another level). The instances keep the same world locations