What do you mean by “get visibility”?
in object property in rendering visible
get visible in child skeletal mesh “AR”
get visible in child skeletal mesh “AR”
// set visibility
skeletalMeshComponent->SetVisibility(false / true);
// get visibility
bool isVisible = skeletalMeshComponent->IsVisible();
this is for child skeletal mesh
// AActor.cpp
for (auto* comp : GetComponents<USkeletalMeshComponent>())
{
if (comp->GetFName() == FName("AR"))
{
bool whatYouWant = comp->IsVisible();
break;
}
}
I hope my response proves helpful!