The visibility flag is reset to true in UGeometryCollectionComponent::UnregisterFromISMPool.
This function is called from BeginPlay.
Only when ISMPoolActor is not being used, the following workaround prevent the flag from being overridden.
void UGeometryCollectionComponent::UnregisterFromISMPool()
{
if (ISMPool)
{
if (UGeometryCollectionISMPoolComponent* ISMPoolComp = ISMPool->GetISMPoolComp())
{
ISMPoolComp->DestroyMeshGroup(ISMPoolMeshGroupIndex);
ISMPoolMeshGroupIndex = INDEX_NONE;
}
SetVisibility(true); //move here
}
// SetVisibility(true); //remove
}
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-175191 in the post.
| 1 |
| Component | UE - Simulation - Physics - Destruction |
|---|---|
| Affects Versions | 5.1 |
| Target Fix | 5.3 |
| Created | Jan 26, 2023 |
|---|---|
| Resolved | Feb 1, 2023 |
| Updated | Mar 7, 2023 |