Download

SetSkeletalMesh error

static ConstructorHelpers::FObjectFinder<USkeletalMesh> NewSkeletalMesh(TEXT(“SkeletalMesh’/Game/InfinityBladeWarriors/Character/CompleteCharacters/SK_CharM_FrostGiant.SK_CharM_FrostGiant’”));
SMesh = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT(“Blueprint’/Game/Entity/GameEntity_BP.GameEntity_BP’”));
SMesh->SetSkeletalMesh(NewSkeletalMesh.Object);
SMesh->AttachTo(RootComponent);

I have no idea , thanks

I tried this:


static ConstructorHelpers::FObjectFinder <USkeletalMesh> Mesh(TEXT("/Game/Mannequin/Character/Mesh/SK_Mannequin"));
    if (Mesh.Succeeded())
    {
        GetMesh()->SetSkeletalMesh(Mesh.Object);
    }

It Spawns, but in mid-air and no animation :frowning: