Pointer issues UDecalComponent

BEnSon1101
Sun, 24 May 2020 02:09:12 +0000
Rendering

UDecalComponent* DC;
DC.FadeScreenSize = 1;
FVector BulletHoleSize = FVector(3.5f, 7.f, 7.f);
DC = UGameplayStatics::SpawnDecalAtLocation(GetWorld(), BulletHoleDecal, BulletHoleSize, HitResult.ImpactPoint, HitResult.ImpactNormal.Rotation(), 5.f);

the error is in DC.FadeScreenSize and I am assuming I am incorrectly using pointers

2 posts - 1 participant