Hello,
I am using ray-trace to scan 360 degrees.
GetWorld()->LineTraceSingleByChannel(OutHit, Start, End, ECC_Visibility, CollisionParams))
GEngine->AddOnScreenDebugMessage(-1, 1.f, FColor::Red, FString::Printf(*OutHit.GetComponent()->GetName()));
Is it possible to get the roughness of the material as float?
I am trying :
OutHit.GetComponent()->GetMaterial(0)->GetBaseMaterial()->Roughness
I am not sure if this gives what I need. If it gives roughness as I am looking for, how can I get it in float?