Skip to content

Instantly share code, notes, and snippets.

@ashe23
Created May 8, 2019 11:34
Show Gist options
  • Select an option

  • Save ashe23/8bc115a44a5a9e7bf12f1d52085a92e2 to your computer and use it in GitHub Desktop.

Select an option

Save ashe23/8bc115a44a5a9e7bf12f1d52085a92e2 to your computer and use it in GitHub Desktop.
Getting all morph targets from skeletal mesh ue4 C++
USkeletalMeshComponent* mesh = GetMesh();
USkeletalMesh * skelMesh = mesh->SkeletalMesh;
TMap< FName, int32 > myMap = skelMesh->MorphTargetIndexMap;
for (TPair< FName, int32> Entry : myMap) {
Morphs.Add(Entry.Key.ToString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment