Пример #1
0
void APhysicsVolume::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
	UWorld* MyWorld = GetWorld();
	if (MyWorld)
	{
		MyWorld->RemovePhysicsVolume(this);
	}
	Super::EndPlay(EndPlayReason);
}
Пример #2
0
void APhysicsVolume::Destroyed()
{
	UWorld* MyWorld = GetWorld();
	if (MyWorld)
	{
		MyWorld->RemovePhysicsVolume(this);
	}
	Super::Destroyed();
}