안녕하세요.
Groom을 게임에 적용하면서, Game Pause가 되었을 때 Hair Simulation이 되지 않는 현상을 해결하고자 문의 드립니다.
Game Pause가 아닐 때는 문제가 없지만, Pause를 켠 상태(UGameplayStatics::SetGamePaused)에서는 Hair가 고정되어 있는 상태(마치 Physics가 적용 안된 것처럼 보이는)로 표현됩니다.
아래와 같이 Actor와 GroomComponent에 대해 Tick 설정을 하였습니다.
Actor:
PrimaryActorTick.bTickEvenWhenPaused = true;
PrimaryActorTick.bCanEverTick = true;
GroomComponent:
GroomComp = CreateDefaultSubobject<UGroomComponent>(TEXT(“GroomComp”));
GroomComp->PrimaryComponentTick.bCanEverTick = true;
GroomComp->PrimaryComponentTick.bTickEvenWhenPaused = true;
GroomComp->SetupAttachment(Mesh);
이렇게 하였을 때, UGroomComponent::TickComponent가 호출되는 것은 확인됩니다만 여전히 Hair는 Simulation이 되지 않습니다.
해결 방법이 있을까요?
감사합니다.