| 153 | } |
| 154 | |
| 155 | void AAlsxtOverlayObjectActor::SetMesh(UObject* NewMeshAsset) |
| 156 | { |
| 157 | if (!NewMeshAsset) return; |
| 158 | |
| 159 | if (UStaticMesh* StaticMesh = Cast<UStaticMesh>(NewMeshAsset)) |
| 160 | { |
| 161 | StaticMeshComponent->SetStaticMesh(StaticMesh); |
| 162 | } |
| 163 | else if (USkeletalMesh* SkeletalMesh = Cast<USkeletalMesh>(NewMeshAsset)) |
| 164 | { |
| 165 | SkeletalMeshComponent->SetSkeletalMesh(SkeletalMesh, false); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | void AAlsxtOverlayObjectActor::ModifyAttachment(int Index) |
| 170 | { |
nothing calls this directly
no test coverage detected