Description

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
}

Steps to Reproduce
  1. Place a geometrycollection to a level
  2. Set its visibility flag to false
  3. Start PIE

Result:

The visibility flag is forced to true and the geometrycollection is displayed

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-175191 in the post.

1
Login to Vote

Fixed
ComponentUE - Simulation - Physics - Destruction
Affects Versions5.1
Target Fix5.3
Fix Commit23934984
Main Commit23934984
CreatedJan 26, 2023
ResolvedFeb 1, 2023
UpdatedMar 7, 2023