MCPcopy Create free account
hub / github.com/Voidware-Prohibited/ALSXT / SetMesh

Method SetMesh

Source/ALSXT/Private/AlsxtOverlayObjectActor.cpp:155–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void 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
169void AAlsxtOverlayObjectActor::ModifyAttachment(int Index)
170{

Callers

nothing calls this directly

Calls 2

SetStaticMeshMethod · 0.80
SetSkeletalMeshMethod · 0.80

Tested by

no test coverage detected