When i spawn my cards, they are invisible. If i adjust their rotation from 0.0 to 0.1 and then back again to 0.0, they appear.
Why on earth is this (see image red part and transform highlighted red parts)?
My code that spawns the Card actor looks like this:
// Spawner:
ACard* spawnedCard = GetWorld()->SpawnActor<ACard>(location, this->deckPlacementArea->GetComponentRotation(), spawnInfo);
UPaperSpriteComponent* newSpriteComponent = NewObject<UPaperSpriteComponent>(spawnedCard, *name);
spawnedCard->SetFrontOfCardSpriteComponent(newSpriteComponent);
newSpriteComponent->SetSprite(this->cardSprites[spriteCounter]);
newSpriteComponent->SetRelativeScale3D(this->deckPlacementArea->GetComponentScale());
newSpriteComponent->Activate();
// Method that attaches the new sprite component to my card
void ACard::SetFrontOfCardSpriteComponent(UPaperSpriteComponent* spriteComponent)
{
this->frontOfCardSpriteComponent = spriteComponent;
this->frontOfCardSpriteComponent->AttachToComponent(this->GetRootComponent(), FAttachmentTransformRules::KeepRelativeTransform);
}